fix migrations
This commit is contained in:
parent
cc8b3e470d
commit
5c2b6debac
@ -0,0 +1,63 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.AccountLinkContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlAccountLinkContext))]
|
||||
[Migration("20201006095547_AccountLinkContextMySql")]
|
||||
partial class AccountLinkContextMySql
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.AccountLinks", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UId")
|
||||
.HasColumnName("uid")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("Linked")
|
||||
.HasColumnName("linked")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Profile")
|
||||
.IsRequired()
|
||||
.HasColumnName("profile")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Provider")
|
||||
.HasColumnName("provider")
|
||||
.HasColumnType("char(60)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id", "UId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("UId")
|
||||
.HasName("uid");
|
||||
|
||||
b.ToTable("account_links");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.AccountLinkContextMySql
|
||||
{
|
||||
public partial class AccountLinkContextMySql : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "account_links",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<string>(type: "varchar(200)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
uid = table.Column<string>(type: "varchar(200)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
provider = table.Column<string>(type: "char(60)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
profile = table.Column<string>(type: "text", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
linked = table.Column<DateTime>(type: "datetime", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.id, x.uid });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "uid",
|
||||
table: "account_links",
|
||||
column: "uid");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "account_links");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.AccountLinkContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlAccountLinkContext))]
|
||||
partial class AccountLinkContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.AccountLinks", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UId")
|
||||
.HasColumnName("uid")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("Linked")
|
||||
.HasColumnName("linked")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Profile")
|
||||
.IsRequired()
|
||||
.HasColumnName("profile")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Provider")
|
||||
.HasColumnName("provider")
|
||||
.HasColumnType("char(60)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id", "UId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("UId")
|
||||
.HasName("uid");
|
||||
|
||||
b.ToTable("account_links");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
772
common/ASC.Core.Common/Migrations/MySql/CoreDbContextMySql/20201006100008_CoreDbContextMySql.Designer.cs
generated
Normal file
772
common/ASC.Core.Common/Migrations/MySql/CoreDbContextMySql/20201006100008_CoreDbContextMySql.Designer.cs
generated
Normal file
@ -0,0 +1,772 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.CoreDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlCoreDbContext))]
|
||||
[Migration("20201006100008_CoreDbContextMySql")]
|
||||
partial class CoreDbContextMySql
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Acl", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Subject")
|
||||
.HasColumnName("subject")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Action")
|
||||
.HasColumnName("action")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Object")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("object")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasDefaultValueSql("''")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("AceType")
|
||||
.HasColumnName("acetype")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Tenant", "Subject", "Action", "Object")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("core_acl");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "5d5b7260-f7f7-49f1-a1c9-95fbb6a12604",
|
||||
Action = "ef5e6790-f346-4b6e-b662-722bc28cb0db",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "5d5b7260-f7f7-49f1-a1c9-95fbb6a12604",
|
||||
Action = "f11e8f3f-46e6-4e55-90e3-09c22ec565bd",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "088d5940-a80f-4403-9741-d610718ce95c",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "08d66144-e1c9-4065-9aa1-aa4bba0a7bc8",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "08d75c97-cf3f-494b-90d1-751c941fe2dd",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "0d1f72a8-63da-47ea-ae42-0900e4ac72a9",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "13e30b51-5b4d-40a5-8575-cb561899eeb1",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "19f658ae-722b-4cd8-8236-3ad150801d96",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "2c6552b3-b2e0-4a00-b8fd-13c161e337b1",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "388c29d3-c662-4a61-bf47-fc2f7094224a",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "40bf31f4-3132-4e76-8d5c-9828a89501a3",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "49ae8915-2b30-4348-ab74-b152279364fb",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "9018c001-24c2-44bf-a1db-d1121a570e74",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "948ad738-434b-4a88-8e38-7569d332910a",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "9d75a568-52aa-49d8-ad43-473756cd8903",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "a362fe79-684e-4d43-a599-65bc1f4e167f",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "c426c349-9ad4-47cd-9b8f-99fc30675951",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "d11ebcb9-0e6e-45e6-a6d0-99c41d687598",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "d1f3b53d-d9e2-4259-80e7-d24380978395",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "d49f4e30-da10-4b39-bc6d-b41ef6e039d3",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "d852b66f-6719-45e1-8657-18f0bb791690",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "e0759a42-47f0-4763-a26a-d5aa665bec35",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "e37239bd-c5b5-4f1e-a9f8-3ceeac209615",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "fbc37705-a04c-40ad-a68c-ce2f0423f397",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "fcac42b8-9386-48eb-a938-d19b3c576912",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "13e30b51-5b4d-40a5-8575-cb561899eeb1",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "49ae8915-2b30-4348-ab74-b152279364fb",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "9018c001-24c2-44bf-a1db-d1121a570e74",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "d1f3b53d-d9e2-4259-80e7-d24380978395",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "e0759a42-47f0-4763-a26a-d5aa665bec35",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "e37239bd-c5b5-4f1e-a9f8-3ceeac209615",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "f11e88d7-f185-4372-927c-d88008d2c483",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "f11e8f3f-46e6-4e55-90e3-09c22ec565bd",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "00e7dfc5-ac49-4fd3-a1d6-98d84e877ac4",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "14be970f-7af5-4590-8e81-ea32b5f7866d",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "18ecc94d-6afa-4994-8406-aee9dff12ce2",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "298530eb-435e-4dc6-a776-9abcd95c70e9",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "430eaf70-1886-483c-a746-1a18e3e6bb63",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "557d6503-633b-4490-a14c-6473147ce2b3",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "724cbb75-d1c9-451e-bae0-4de0db96b1f7",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "7cb5c0d1-d254-433f-abe3-ff23373ec631",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "91b29dcd-9430-4403-b17a-27d09189be88",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "a18480a4-6d18-4c71-84fa-789888791f45",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "b630d29b-1844-4bda-bbbe-cf5542df3559",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "c62a9e8d-b24c-4513-90aa-7ff0f8ba38eb",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "d7cdb020-288b-41e5-a857-597347618533",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "662f3db7-9bc8-42cf-84da-2765f563e9b0",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "712d9ec3-5d2b-4b13-824f-71f00191dcca",
|
||||
Action = "e0759a42-47f0-4763-a26a-d5aa665bec35",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "0d68b142-e20a-446e-a832-0d6b0b65a164",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "6f05c382-8bca-4469-9424-c807a98c40d7",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|1e04460243b54d7982f3fd6208a11960",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6743007c6f954d208c88a8601ce5e76d",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|e67be73df9ae4ce18fec1880cb518cb4",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|ea942538e68e49079394035336ee0ba8",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|32d24cb57ece46069c9419216ba42086",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|bf88953e3c434850a3fbb1e43ad53a3e",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|2a9230378b2d487b9a225ac0918acf3f",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|f4d98afdd336433287783c6945c81ea0",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|28b10049dd204f54b986873bc14ccfc7",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|3cfd481b46f24a4ab55cb8c0c9def02c",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6a598c7491ae437da5f4ad339bd11bb2",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|742cf945cbbc4a5782d61600a12cf8ca",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|853b6eb973ee438d9b098ffeedf36234",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|46cfa73af32046cf8d5bcd82e1d67f26",
|
||||
AceType = 0
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.DbButton", b =>
|
||||
{
|
||||
b.Property<int>("TariffId")
|
||||
.HasColumnName("tariff_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("PartnerId")
|
||||
.HasColumnName("partner_id")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ButtonUrl")
|
||||
.IsRequired()
|
||||
.HasColumnName("button_url")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("TariffId", "PartnerId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("tenants_buttons");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.DbQuota", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("ActiveUsers")
|
||||
.HasColumnName("active_users")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("AvangateId")
|
||||
.HasColumnName("avangate_id")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnName("description")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Features")
|
||||
.HasColumnName("features")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<long>("MaxFileSize")
|
||||
.HasColumnName("max_file_size")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<long>("MaxTotalSize")
|
||||
.HasColumnName("max_total_size")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasColumnName("name")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<decimal>("Price")
|
||||
.HasColumnName("price")
|
||||
.HasColumnType("decimal(10,2)");
|
||||
|
||||
b.Property<decimal>("Price2")
|
||||
.HasColumnName("price2")
|
||||
.HasColumnType("decimal(10,2)");
|
||||
|
||||
b.Property<bool>("Visible")
|
||||
.HasColumnName("visible")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.HasKey("Tenant")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("tenants_quota");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
ActiveUsers = 10000,
|
||||
AvangateId = "0",
|
||||
Features = "docs,domain,audit,controlpanel,healthcheck,ldap,sso,whitelabel,branding,ssbranding,update,support,portals:10000,discencryption",
|
||||
MaxFileSize = 102400L,
|
||||
MaxTotalSize = 10995116277760L,
|
||||
Name = "default",
|
||||
Price = 0.00m,
|
||||
Price2 = 0.00m,
|
||||
Visible = false
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.DbQuotaRow", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Path")
|
||||
.HasColumnName("path")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<long>("Counter")
|
||||
.HasColumnName("counter")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("Tag")
|
||||
.HasColumnName("tag")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Tenant", "Path")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.ToTable("tenants_quotarow");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.DbTariff", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Comment")
|
||||
.HasColumnName("comment")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreateOn")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnName("create_on")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<DateTime>("Stamp")
|
||||
.HasColumnName("stamp")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("Tariff")
|
||||
.HasColumnName("tariff")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("TariffKey")
|
||||
.HasColumnName("tariff_key")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("Tenant")
|
||||
.HasName("tenant");
|
||||
|
||||
b.ToTable("tenants_tariff");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,227 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.CoreDbContextMySql
|
||||
{
|
||||
public partial class CoreDbContextMySql : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "core_acl",
|
||||
columns: table => new
|
||||
{
|
||||
tenant = table.Column<int>(nullable: false),
|
||||
subject = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
action = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
@object = table.Column<string>(name: "object", type: "varchar(255)", nullable: false, defaultValueSql: "''")
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
acetype = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.tenant, x.subject, x.action, x.@object });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "tenants_buttons",
|
||||
columns: table => new
|
||||
{
|
||||
tariff_id = table.Column<int>(nullable: false),
|
||||
partner_id = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
button_url = table.Column<string>(type: "text", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.tariff_id, x.partner_id });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "tenants_quota",
|
||||
columns: table => new
|
||||
{
|
||||
tenant = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
name = table.Column<string>(type: "varchar(128)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
description = table.Column<string>(type: "varchar(128)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
max_file_size = table.Column<long>(nullable: false),
|
||||
max_total_size = table.Column<long>(nullable: false),
|
||||
active_users = table.Column<int>(nullable: false),
|
||||
features = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
price = table.Column<decimal>(type: "decimal(10,2)", nullable: false),
|
||||
price2 = table.Column<decimal>(type: "decimal(10,2)", nullable: false),
|
||||
avangate_id = table.Column<string>(type: "varchar(128)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
visible = table.Column<bool>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => x.tenant);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "tenants_quotarow",
|
||||
columns: table => new
|
||||
{
|
||||
tenant = table.Column<int>(nullable: false),
|
||||
path = table.Column<string>(type: "varchar(255)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
counter = table.Column<long>(nullable: false),
|
||||
tag = table.Column<string>(type: "varchar(1024)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
last_modified = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.tenant, x.path });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "tenants_tariff",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
tenant = table.Column<int>(nullable: false),
|
||||
tariff = table.Column<int>(nullable: false),
|
||||
stamp = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
tariff_key = table.Column<string>(type: "varchar(64)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
comment = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
create_on = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_tenants_tariff", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "core_acl",
|
||||
columns: new[] { "tenant", "subject", "action", "object", "acetype" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ -1, "5d5b7260-f7f7-49f1-a1c9-95fbb6a12604", "ef5e6790-f346-4b6e-b662-722bc28cb0db", "", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "00e7dfc5-ac49-4fd3-a1d6-98d84e877ac4", "", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "14be970f-7af5-4590-8e81-ea32b5f7866d", "", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "18ecc94d-6afa-4994-8406-aee9dff12ce2", "", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "298530eb-435e-4dc6-a776-9abcd95c70e9", "", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "430eaf70-1886-483c-a746-1a18e3e6bb63", "", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "557d6503-633b-4490-a14c-6473147ce2b3", "", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "724cbb75-d1c9-451e-bae0-4de0db96b1f7", "", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "7cb5c0d1-d254-433f-abe3-ff23373ec631", "", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "91b29dcd-9430-4403-b17a-27d09189be88", "", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "a18480a4-6d18-4c71-84fa-789888791f45", "", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "b630d29b-1844-4bda-bbbe-cf5542df3559", "", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "c62a9e8d-b24c-4513-90aa-7ff0f8ba38eb", "", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "d7cdb020-288b-41e5-a857-597347618533", "", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "662f3db7-9bc8-42cf-84da-2765f563e9b0", "", 0 },
|
||||
{ -1, "ba74ca02-873f-43dc-8470-8620c156bc67", "f11e8f3f-46e6-4e55-90e3-09c22ec565bd", "", 0 },
|
||||
{ -1, "712d9ec3-5d2b-4b13-824f-71f00191dcca", "e0759a42-47f0-4763-a26a-d5aa665bec35", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6f05c382-8bca-4469-9424-c807a98c40d7", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "77777777-32ae-425f-99b5-83176061d1ae", "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|1e04460243b54d7982f3fd6208a11960", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "77777777-32ae-425f-99b5-83176061d1ae", "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6743007c6f954d208c88a8601ce5e76d", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "77777777-32ae-425f-99b5-83176061d1ae", "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|e67be73df9ae4ce18fec1880cb518cb4", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "77777777-32ae-425f-99b5-83176061d1ae", "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|ea942538e68e49079394035336ee0ba8", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "77777777-32ae-425f-99b5-83176061d1ae", "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|32d24cb57ece46069c9419216ba42086", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "77777777-32ae-425f-99b5-83176061d1ae", "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|bf88953e3c434850a3fbb1e43ad53a3e", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "77777777-32ae-425f-99b5-83176061d1ae", "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|2a9230378b2d487b9a225ac0918acf3f", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "77777777-32ae-425f-99b5-83176061d1ae", "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|f4d98afdd336433287783c6945c81ea0", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "77777777-32ae-425f-99b5-83176061d1ae", "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|28b10049dd204f54b986873bc14ccfc7", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "77777777-32ae-425f-99b5-83176061d1ae", "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|3cfd481b46f24a4ab55cb8c0c9def02c", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "77777777-32ae-425f-99b5-83176061d1ae", "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6a598c7491ae437da5f4ad339bd11bb2", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "77777777-32ae-425f-99b5-83176061d1ae", "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|742cf945cbbc4a5782d61600a12cf8ca", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "77777777-32ae-425f-99b5-83176061d1ae", "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|853b6eb973ee438d9b098ffeedf36234", 0 },
|
||||
{ -1, "bba32183-a14d-48ed-9d39-c6b4d8925fbf", "0d68b142-e20a-446e-a832-0d6b0b65a164", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "77777777-32ae-425f-99b5-83176061d1ae", "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|46cfa73af32046cf8d5bcd82e1d67f26", 0 },
|
||||
{ -1, "ba74ca02-873f-43dc-8470-8620c156bc67", "f11e88d7-f185-4372-927c-d88008d2c483", "", 0 },
|
||||
{ -1, "ba74ca02-873f-43dc-8470-8620c156bc67", "e0759a42-47f0-4763-a26a-d5aa665bec35", "", 0 },
|
||||
{ -1, "5d5b7260-f7f7-49f1-a1c9-95fbb6a12604", "f11e8f3f-46e6-4e55-90e3-09c22ec565bd", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "088d5940-a80f-4403-9741-d610718ce95c", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "08d66144-e1c9-4065-9aa1-aa4bba0a7bc8", "", 0 },
|
||||
{ -1, "abef62db-11a8-4673-9d32-ef1d8af19dc0", "08d75c97-cf3f-494b-90d1-751c941fe2dd", "", 0 },
|
||||
{ -1, "abef62db-11a8-4673-9d32-ef1d8af19dc0", "0d1f72a8-63da-47ea-ae42-0900e4ac72a9", "", 0 },
|
||||
{ -1, "abef62db-11a8-4673-9d32-ef1d8af19dc0", "13e30b51-5b4d-40a5-8575-cb561899eeb1", "", 0 },
|
||||
{ -1, "abef62db-11a8-4673-9d32-ef1d8af19dc0", "19f658ae-722b-4cd8-8236-3ad150801d96", "", 0 },
|
||||
{ -1, "abef62db-11a8-4673-9d32-ef1d8af19dc0", "2c6552b3-b2e0-4a00-b8fd-13c161e337b1", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "388c29d3-c662-4a61-bf47-fc2f7094224a", "", 0 },
|
||||
{ -1, "abef62db-11a8-4673-9d32-ef1d8af19dc0", "40bf31f4-3132-4e76-8d5c-9828a89501a3", "", 0 },
|
||||
{ -1, "abef62db-11a8-4673-9d32-ef1d8af19dc0", "49ae8915-2b30-4348-ab74-b152279364fb", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "9018c001-24c2-44bf-a1db-d1121a570e74", "", 0 },
|
||||
{ -1, "abef62db-11a8-4673-9d32-ef1d8af19dc0", "948ad738-434b-4a88-8e38-7569d332910a", "", 0 },
|
||||
{ -1, "ba74ca02-873f-43dc-8470-8620c156bc67", "e37239bd-c5b5-4f1e-a9f8-3ceeac209615", "", 0 },
|
||||
{ -1, "abef62db-11a8-4673-9d32-ef1d8af19dc0", "9d75a568-52aa-49d8-ad43-473756cd8903", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "c426c349-9ad4-47cd-9b8f-99fc30675951", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "d11ebcb9-0e6e-45e6-a6d0-99c41d687598", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "d1f3b53d-d9e2-4259-80e7-d24380978395", "", 0 },
|
||||
{ -1, "abef62db-11a8-4673-9d32-ef1d8af19dc0", "d49f4e30-da10-4b39-bc6d-b41ef6e039d3", "", 0 },
|
||||
{ -1, "abef62db-11a8-4673-9d32-ef1d8af19dc0", "d852b66f-6719-45e1-8657-18f0bb791690", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "e0759a42-47f0-4763-a26a-d5aa665bec35", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "e37239bd-c5b5-4f1e-a9f8-3ceeac209615", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "fbc37705-a04c-40ad-a68c-ce2f0423f397", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "fcac42b8-9386-48eb-a938-d19b3c576912", "", 0 },
|
||||
{ -1, "ba74ca02-873f-43dc-8470-8620c156bc67", "13e30b51-5b4d-40a5-8575-cb561899eeb1", "", 0 },
|
||||
{ -1, "ba74ca02-873f-43dc-8470-8620c156bc67", "49ae8915-2b30-4348-ab74-b152279364fb", "", 0 },
|
||||
{ -1, "ba74ca02-873f-43dc-8470-8620c156bc67", "63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd", "", 0 },
|
||||
{ -1, "ba74ca02-873f-43dc-8470-8620c156bc67", "9018c001-24c2-44bf-a1db-d1121a570e74", "", 0 },
|
||||
{ -1, "ba74ca02-873f-43dc-8470-8620c156bc67", "d1f3b53d-d9e2-4259-80e7-d24380978395", "", 0 },
|
||||
{ -1, "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "a362fe79-684e-4d43-a599-65bc1f4e167f", "", 0 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "tenants_quota",
|
||||
columns: new[] { "tenant", "active_users", "avangate_id", "description", "features", "max_file_size", "max_total_size", "name", "price", "price2", "visible" },
|
||||
values: new object[] { -1, 10000, "0", null, "docs,domain,audit,controlpanel,healthcheck,ldap,sso,whitelabel,branding,ssbranding,update,support,portals:10000,discencryption", 102400L, 10995116277760L, "default", 0.00m, 0.00m, false });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "last_modified",
|
||||
table: "tenants_quotarow",
|
||||
column: "last_modified");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "tenant",
|
||||
table: "tenants_tariff",
|
||||
column: "tenant");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "core_acl");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "tenants_buttons");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "tenants_quota");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "tenants_quotarow");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "tenants_tariff");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,770 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.CoreDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlCoreDbContext))]
|
||||
partial class CoreDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Acl", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Subject")
|
||||
.HasColumnName("subject")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Action")
|
||||
.HasColumnName("action")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Object")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("object")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasDefaultValueSql("''")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("AceType")
|
||||
.HasColumnName("acetype")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Tenant", "Subject", "Action", "Object")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("core_acl");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "5d5b7260-f7f7-49f1-a1c9-95fbb6a12604",
|
||||
Action = "ef5e6790-f346-4b6e-b662-722bc28cb0db",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "5d5b7260-f7f7-49f1-a1c9-95fbb6a12604",
|
||||
Action = "f11e8f3f-46e6-4e55-90e3-09c22ec565bd",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "088d5940-a80f-4403-9741-d610718ce95c",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "08d66144-e1c9-4065-9aa1-aa4bba0a7bc8",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "08d75c97-cf3f-494b-90d1-751c941fe2dd",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "0d1f72a8-63da-47ea-ae42-0900e4ac72a9",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "13e30b51-5b4d-40a5-8575-cb561899eeb1",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "19f658ae-722b-4cd8-8236-3ad150801d96",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "2c6552b3-b2e0-4a00-b8fd-13c161e337b1",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "388c29d3-c662-4a61-bf47-fc2f7094224a",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "40bf31f4-3132-4e76-8d5c-9828a89501a3",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "49ae8915-2b30-4348-ab74-b152279364fb",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "9018c001-24c2-44bf-a1db-d1121a570e74",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "948ad738-434b-4a88-8e38-7569d332910a",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "9d75a568-52aa-49d8-ad43-473756cd8903",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "a362fe79-684e-4d43-a599-65bc1f4e167f",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "c426c349-9ad4-47cd-9b8f-99fc30675951",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "d11ebcb9-0e6e-45e6-a6d0-99c41d687598",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "d1f3b53d-d9e2-4259-80e7-d24380978395",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "d49f4e30-da10-4b39-bc6d-b41ef6e039d3",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Action = "d852b66f-6719-45e1-8657-18f0bb791690",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "e0759a42-47f0-4763-a26a-d5aa665bec35",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "e37239bd-c5b5-4f1e-a9f8-3ceeac209615",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "fbc37705-a04c-40ad-a68c-ce2f0423f397",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "fcac42b8-9386-48eb-a938-d19b3c576912",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "13e30b51-5b4d-40a5-8575-cb561899eeb1",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "49ae8915-2b30-4348-ab74-b152279364fb",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "9018c001-24c2-44bf-a1db-d1121a570e74",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "d1f3b53d-d9e2-4259-80e7-d24380978395",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "e0759a42-47f0-4763-a26a-d5aa665bec35",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "e37239bd-c5b5-4f1e-a9f8-3ceeac209615",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "f11e88d7-f185-4372-927c-d88008d2c483",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "ba74ca02-873f-43dc-8470-8620c156bc67",
|
||||
Action = "f11e8f3f-46e6-4e55-90e3-09c22ec565bd",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "00e7dfc5-ac49-4fd3-a1d6-98d84e877ac4",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "14be970f-7af5-4590-8e81-ea32b5f7866d",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "18ecc94d-6afa-4994-8406-aee9dff12ce2",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "298530eb-435e-4dc6-a776-9abcd95c70e9",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "430eaf70-1886-483c-a746-1a18e3e6bb63",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "557d6503-633b-4490-a14c-6473147ce2b3",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "724cbb75-d1c9-451e-bae0-4de0db96b1f7",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "7cb5c0d1-d254-433f-abe3-ff23373ec631",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "91b29dcd-9430-4403-b17a-27d09189be88",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "a18480a4-6d18-4c71-84fa-789888791f45",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "b630d29b-1844-4bda-bbbe-cf5542df3559",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "c62a9e8d-b24c-4513-90aa-7ff0f8ba38eb",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "d7cdb020-288b-41e5-a857-597347618533",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "662f3db7-9bc8-42cf-84da-2765f563e9b0",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "712d9ec3-5d2b-4b13-824f-71f00191dcca",
|
||||
Action = "e0759a42-47f0-4763-a26a-d5aa665bec35",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "bba32183-a14d-48ed-9d39-c6b4d8925fbf",
|
||||
Action = "0d68b142-e20a-446e-a832-0d6b0b65a164",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "6f05c382-8bca-4469-9424-c807a98c40d7",
|
||||
Object = "",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|1e04460243b54d7982f3fd6208a11960",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6743007c6f954d208c88a8601ce5e76d",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|e67be73df9ae4ce18fec1880cb518cb4",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|ea942538e68e49079394035336ee0ba8",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|32d24cb57ece46069c9419216ba42086",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|bf88953e3c434850a3fbb1e43ad53a3e",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|2a9230378b2d487b9a225ac0918acf3f",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|f4d98afdd336433287783c6945c81ea0",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|28b10049dd204f54b986873bc14ccfc7",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|3cfd481b46f24a4ab55cb8c0c9def02c",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6a598c7491ae437da5f4ad339bd11bb2",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|742cf945cbbc4a5782d61600a12cf8ca",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|853b6eb973ee438d9b098ffeedf36234",
|
||||
AceType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Subject = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Action = "77777777-32ae-425f-99b5-83176061d1ae",
|
||||
Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|46cfa73af32046cf8d5bcd82e1d67f26",
|
||||
AceType = 0
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.DbButton", b =>
|
||||
{
|
||||
b.Property<int>("TariffId")
|
||||
.HasColumnName("tariff_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("PartnerId")
|
||||
.HasColumnName("partner_id")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ButtonUrl")
|
||||
.IsRequired()
|
||||
.HasColumnName("button_url")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("TariffId", "PartnerId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("tenants_buttons");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.DbQuota", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("ActiveUsers")
|
||||
.HasColumnName("active_users")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("AvangateId")
|
||||
.HasColumnName("avangate_id")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnName("description")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Features")
|
||||
.HasColumnName("features")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<long>("MaxFileSize")
|
||||
.HasColumnName("max_file_size")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<long>("MaxTotalSize")
|
||||
.HasColumnName("max_total_size")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasColumnName("name")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<decimal>("Price")
|
||||
.HasColumnName("price")
|
||||
.HasColumnType("decimal(10,2)");
|
||||
|
||||
b.Property<decimal>("Price2")
|
||||
.HasColumnName("price2")
|
||||
.HasColumnType("decimal(10,2)");
|
||||
|
||||
b.Property<bool>("Visible")
|
||||
.HasColumnName("visible")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.HasKey("Tenant")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("tenants_quota");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
ActiveUsers = 10000,
|
||||
AvangateId = "0",
|
||||
Features = "docs,domain,audit,controlpanel,healthcheck,ldap,sso,whitelabel,branding,ssbranding,update,support,portals:10000,discencryption",
|
||||
MaxFileSize = 102400L,
|
||||
MaxTotalSize = 10995116277760L,
|
||||
Name = "default",
|
||||
Price = 0.00m,
|
||||
Price2 = 0.00m,
|
||||
Visible = false
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.DbQuotaRow", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Path")
|
||||
.HasColumnName("path")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<long>("Counter")
|
||||
.HasColumnName("counter")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("Tag")
|
||||
.HasColumnName("tag")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Tenant", "Path")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.ToTable("tenants_quotarow");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.DbTariff", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Comment")
|
||||
.HasColumnName("comment")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreateOn")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnName("create_on")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<DateTime>("Stamp")
|
||||
.HasColumnName("stamp")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("Tariff")
|
||||
.HasColumnName("tariff")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("TariffKey")
|
||||
.HasColumnName("tariff_key")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("Tenant")
|
||||
.HasName("tenant");
|
||||
|
||||
b.ToTable("tenants_tariff");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
163
common/ASC.Core.Common/Migrations/MySql/DbContextMySql/20201006100150_DbContextMySql.Designer.cs
generated
Normal file
163
common/ASC.Core.Common/Migrations/MySql/DbContextMySql/20201006100150_DbContextMySql.Designer.cs
generated
Normal file
@ -0,0 +1,163 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.DbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlDbContext))]
|
||||
[Migration("20201006100150_DbContextMySql")]
|
||||
partial class DbContextMySql
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbipLocation", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("AddrType")
|
||||
.IsRequired()
|
||||
.HasColumnName("addr_type")
|
||||
.HasColumnType("enum('ipv4','ipv6')")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("City")
|
||||
.IsRequired()
|
||||
.HasColumnName("city")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Country")
|
||||
.IsRequired()
|
||||
.HasColumnName("country")
|
||||
.HasColumnType("varchar(2)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("District")
|
||||
.HasColumnName("district")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("GeonameId")
|
||||
.HasColumnName("geoname_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("IPEnd")
|
||||
.IsRequired()
|
||||
.HasColumnName("ip_end")
|
||||
.HasColumnType("varchar(39)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("IPStart")
|
||||
.IsRequired()
|
||||
.HasColumnName("ip_start")
|
||||
.HasColumnType("varchar(39)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<long>("Latitude")
|
||||
.HasColumnName("latitude")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<long>("Longitude")
|
||||
.HasColumnName("longitude")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<int>("Processed")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("processed")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'1'");
|
||||
|
||||
b.Property<string>("StateProv")
|
||||
.IsRequired()
|
||||
.HasColumnName("stateprov")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("TimezoneName")
|
||||
.HasColumnName("timezone_name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<double>("TimezoneOffset")
|
||||
.HasColumnName("timezone_offset")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<string>("ZipCode")
|
||||
.HasColumnName("zipcode")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("IPStart")
|
||||
.HasName("ip_start");
|
||||
|
||||
b.ToTable("dbip_location");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.MobileAppInstall", b =>
|
||||
{
|
||||
b.Property<string>("UserEmail")
|
||||
.HasColumnName("user_email")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("AppType")
|
||||
.HasColumnName("app_type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("LastSign")
|
||||
.HasColumnName("last_sign")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<DateTime>("RegisteredOn")
|
||||
.HasColumnName("registered_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.HasKey("UserEmail", "AppType")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("mobile_app_install");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Regions", b =>
|
||||
{
|
||||
b.Property<string>("Region")
|
||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
||||
|
||||
b.Property<string>("ConnectionString")
|
||||
.HasColumnName("connection_string")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.Property<string>("Provider")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.HasKey("Region");
|
||||
|
||||
b.ToTable("regions");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.DbContextMySql
|
||||
{
|
||||
public partial class DbContextMySql : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "dbip_location",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
addr_type = table.Column<string>(type: "enum('ipv4','ipv6')", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
ip_start = table.Column<string>(type: "varchar(39)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
ip_end = table.Column<string>(type: "varchar(39)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
country = table.Column<string>(type: "varchar(2)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
stateprov = table.Column<string>(type: "varchar(255)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
district = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
city = table.Column<string>(type: "varchar(255)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
zipcode = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
latitude = table.Column<long>(nullable: false),
|
||||
longitude = table.Column<long>(nullable: false),
|
||||
geoname_id = table.Column<int>(nullable: false),
|
||||
timezone_offset = table.Column<double>(nullable: false),
|
||||
timezone_name = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
processed = table.Column<int>(nullable: false, defaultValueSql: "'1'")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_dbip_location", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "mobile_app_install",
|
||||
columns: table => new
|
||||
{
|
||||
user_email = table.Column<string>(type: "varchar(255)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
app_type = table.Column<int>(nullable: false),
|
||||
registered_on = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
last_sign = table.Column<DateTime>(type: "datetime", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.user_email, x.app_type });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "regions",
|
||||
columns: table => new
|
||||
{
|
||||
Region = table.Column<string>(nullable: false),
|
||||
Provider = table.Column<string>(nullable: true),
|
||||
connection_string = table.Column<string>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_regions", x => x.Region);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "ip_start",
|
||||
table: "dbip_location",
|
||||
column: "ip_start");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "dbip_location");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "mobile_app_install");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "regions");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,161 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.DbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlDbContext))]
|
||||
partial class DbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbipLocation", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("AddrType")
|
||||
.IsRequired()
|
||||
.HasColumnName("addr_type")
|
||||
.HasColumnType("enum('ipv4','ipv6')")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("City")
|
||||
.IsRequired()
|
||||
.HasColumnName("city")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Country")
|
||||
.IsRequired()
|
||||
.HasColumnName("country")
|
||||
.HasColumnType("varchar(2)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("District")
|
||||
.HasColumnName("district")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("GeonameId")
|
||||
.HasColumnName("geoname_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("IPEnd")
|
||||
.IsRequired()
|
||||
.HasColumnName("ip_end")
|
||||
.HasColumnType("varchar(39)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("IPStart")
|
||||
.IsRequired()
|
||||
.HasColumnName("ip_start")
|
||||
.HasColumnType("varchar(39)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<long>("Latitude")
|
||||
.HasColumnName("latitude")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<long>("Longitude")
|
||||
.HasColumnName("longitude")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<int>("Processed")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("processed")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'1'");
|
||||
|
||||
b.Property<string>("StateProv")
|
||||
.IsRequired()
|
||||
.HasColumnName("stateprov")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("TimezoneName")
|
||||
.HasColumnName("timezone_name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<double>("TimezoneOffset")
|
||||
.HasColumnName("timezone_offset")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<string>("ZipCode")
|
||||
.HasColumnName("zipcode")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("IPStart")
|
||||
.HasName("ip_start");
|
||||
|
||||
b.ToTable("dbip_location");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.MobileAppInstall", b =>
|
||||
{
|
||||
b.Property<string>("UserEmail")
|
||||
.HasColumnName("user_email")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("AppType")
|
||||
.HasColumnName("app_type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("LastSign")
|
||||
.HasColumnName("last_sign")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<DateTime>("RegisteredOn")
|
||||
.HasColumnName("registered_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.HasKey("UserEmail", "AppType")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("mobile_app_install");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Regions", b =>
|
||||
{
|
||||
b.Property<string>("Region")
|
||||
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
||||
|
||||
b.Property<string>("ConnectionString")
|
||||
.HasColumnName("connection_string")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.Property<string>("Provider")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.HasKey("Region");
|
||||
|
||||
b.ToTable("regions");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
177
common/ASC.Core.Common/Migrations/MySql/FeedDbContextMySql/20201006100334_FeedDbContextMySql.Designer.cs
generated
Normal file
177
common/ASC.Core.Common/Migrations/MySql/FeedDbContextMySql/20201006100334_FeedDbContextMySql.Designer.cs
generated
Normal file
@ -0,0 +1,177 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.FeedDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlFeedDbContext))]
|
||||
[Migration("20201006100334_FeedDbContextMySql")]
|
||||
partial class FeedDbContextMySql
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedAggregate", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("varchar(88)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("AggregateDate")
|
||||
.HasColumnName("aggregated_date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Author")
|
||||
.IsRequired()
|
||||
.HasColumnName("author")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreatedDate")
|
||||
.HasColumnName("created_date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("GroupId")
|
||||
.HasColumnName("group_id")
|
||||
.HasColumnType("varchar(70)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Json")
|
||||
.IsRequired()
|
||||
.HasColumnName("json")
|
||||
.HasColumnType("mediumtext")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Keywords")
|
||||
.HasColumnName("keywords")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ModifiedBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("modified_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("ModifiedDate")
|
||||
.HasColumnName("modified_date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Module")
|
||||
.IsRequired()
|
||||
.HasColumnName("module")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Product")
|
||||
.IsRequired()
|
||||
.HasColumnName("product")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("Tenant", "AggregateDate")
|
||||
.HasName("aggregated_date");
|
||||
|
||||
b.HasIndex("Tenant", "ModifiedDate")
|
||||
.HasName("modified_date");
|
||||
|
||||
b.HasIndex("Tenant", "Product")
|
||||
.HasName("product");
|
||||
|
||||
b.ToTable("feed_aggregate");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedLast", b =>
|
||||
{
|
||||
b.Property<string>("LastKey")
|
||||
.HasColumnName("last_key")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastDate")
|
||||
.HasColumnName("last_date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.HasKey("LastKey")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("feed_last");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedReaded", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("user_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Module")
|
||||
.HasColumnName("module")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("TimeStamp")
|
||||
.HasColumnName("timestamp")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.HasKey("Tenant", "UserId", "Module")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("feed_readed");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedUsers", b =>
|
||||
{
|
||||
b.Property<string>("FeedId")
|
||||
.HasColumnName("feed_id")
|
||||
.HasColumnType("varchar(88)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("user_id")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("FeedId", "UserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("UserId")
|
||||
.HasName("user_id");
|
||||
|
||||
b.ToTable("feed_users");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.FeedDbContextMySql
|
||||
{
|
||||
public partial class FeedDbContextMySql : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "feed_aggregate",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<string>(type: "varchar(88)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
tenant = table.Column<int>(nullable: false),
|
||||
product = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
module = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
author = table.Column<string>(type: "char(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
modified_by = table.Column<string>(type: "char(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
created_date = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
modified_date = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
group_id = table.Column<string>(type: "varchar(70)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
aggregated_date = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
json = table.Column<string>(type: "mediumtext", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
keywords = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_feed_aggregate", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "feed_last",
|
||||
columns: table => new
|
||||
{
|
||||
last_key = table.Column<string>(type: "varchar(128)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
last_date = table.Column<DateTime>(type: "datetime", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => x.last_key);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "feed_readed",
|
||||
columns: table => new
|
||||
{
|
||||
user_id = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
module = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
timestamp = table.Column<DateTime>(type: "datetime", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.tenant_id, x.user_id, x.module });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "feed_users",
|
||||
columns: table => new
|
||||
{
|
||||
feed_id = table.Column<string>(type: "varchar(88)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
user_id = table.Column<string>(type: "char(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.feed_id, x.user_id });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "aggregated_date",
|
||||
table: "feed_aggregate",
|
||||
columns: new[] { "tenant", "aggregated_date" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "modified_date",
|
||||
table: "feed_aggregate",
|
||||
columns: new[] { "tenant", "modified_date" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "product",
|
||||
table: "feed_aggregate",
|
||||
columns: new[] { "tenant", "product" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "user_id",
|
||||
table: "feed_users",
|
||||
column: "user_id");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "feed_aggregate");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "feed_last");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "feed_readed");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "feed_users");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,175 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.FeedDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlFeedDbContext))]
|
||||
partial class FeedDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedAggregate", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("varchar(88)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("AggregateDate")
|
||||
.HasColumnName("aggregated_date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Author")
|
||||
.IsRequired()
|
||||
.HasColumnName("author")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreatedDate")
|
||||
.HasColumnName("created_date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("GroupId")
|
||||
.HasColumnName("group_id")
|
||||
.HasColumnType("varchar(70)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Json")
|
||||
.IsRequired()
|
||||
.HasColumnName("json")
|
||||
.HasColumnType("mediumtext")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Keywords")
|
||||
.HasColumnName("keywords")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ModifiedBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("modified_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("ModifiedDate")
|
||||
.HasColumnName("modified_date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Module")
|
||||
.IsRequired()
|
||||
.HasColumnName("module")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Product")
|
||||
.IsRequired()
|
||||
.HasColumnName("product")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("Tenant", "AggregateDate")
|
||||
.HasName("aggregated_date");
|
||||
|
||||
b.HasIndex("Tenant", "ModifiedDate")
|
||||
.HasName("modified_date");
|
||||
|
||||
b.HasIndex("Tenant", "Product")
|
||||
.HasName("product");
|
||||
|
||||
b.ToTable("feed_aggregate");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedLast", b =>
|
||||
{
|
||||
b.Property<string>("LastKey")
|
||||
.HasColumnName("last_key")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastDate")
|
||||
.HasColumnName("last_date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.HasKey("LastKey")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("feed_last");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedReaded", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("user_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Module")
|
||||
.HasColumnName("module")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("TimeStamp")
|
||||
.HasColumnName("timestamp")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.HasKey("Tenant", "UserId", "Module")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("feed_readed");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedUsers", b =>
|
||||
{
|
||||
b.Property<string>("FeedId")
|
||||
.HasColumnName("feed_id")
|
||||
.HasColumnType("varchar(88)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("user_id")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("FeedId", "UserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("UserId")
|
||||
.HasName("user_id");
|
||||
|
||||
b.ToTable("feed_users");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,759 @@
|
||||
// <auto-generated />
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.FilesDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlFilesDbContext))]
|
||||
[Migration("20201006100531_FilesDbContextMySql")]
|
||||
partial class FilesDbContextMySql
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.FilesConverts", b =>
|
||||
{
|
||||
b.Property<string>("Input")
|
||||
.HasColumnName("input")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Ouput")
|
||||
.HasColumnName("output")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Input", "Ouput")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("files_converts");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Input = ".csv",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".csv",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".csv",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".doc",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".doc",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".doc",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".doc",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".doc",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docm",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docm",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docm",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docm",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docm",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".doct",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docx",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docx",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docx",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docx",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dot",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dot",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dot",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dot",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dot",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotm",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotm",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotm",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotm",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotm",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotx",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotx",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotx",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotx",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotx",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".epub",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".epub",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".epub",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".epub",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".epub",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodp",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodp",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodp",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fods",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fods",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fods",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fods",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodt",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodt",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodt",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodt",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodt",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".html",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".html",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".html",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".html",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".html",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".mht",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".mht",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".mht",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".mht",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".mht",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".odp",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".odp",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".otp",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".otp",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".otp",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ods",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ods",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ods",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ots",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ots",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ots",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ots",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".odt",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".odt",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".odt",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".odt",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ott",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ott",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ott",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ott",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ott",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pot",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pot",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pot",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".potm",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".potm",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".potm",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".potx",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".potx",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".potx",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pps",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pps",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pps",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppsm",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppsm",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppsm",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppsx",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppsx",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppsx",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppt",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppt",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppt",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptm",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptm",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptm",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptt",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptt",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptt",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptx",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptx",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".rtf",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".rtf",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".rtf",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".rtf",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".txt",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".txt",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".txt",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".txt",
|
||||
Ouput = ".rtx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xls",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xls",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xls",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xls",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlsm",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlsm",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlsm",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlsm",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlst",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlst",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlst",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlst",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlt",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlt",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlt",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlt",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltm",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltm",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltm",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltm",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltx",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltx",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltx",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltx",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xps",
|
||||
Ouput = ".pdf"
|
||||
});
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,182 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.FilesDbContextMySql
|
||||
{
|
||||
public partial class FilesDbContextMySql : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "files_converts",
|
||||
columns: table => new
|
||||
{
|
||||
input = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
output = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.input, x.output });
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "files_converts",
|
||||
columns: new[] { "input", "output" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ ".csv", ".ods" },
|
||||
{ ".pps", ".pdf" },
|
||||
{ ".pps", ".pptx" },
|
||||
{ ".ppsm", ".odp" },
|
||||
{ ".ppsm", ".pdf" },
|
||||
{ ".ppsm", ".pptx" },
|
||||
{ ".ppsx", ".odp" },
|
||||
{ ".pps", ".odp" },
|
||||
{ ".ppsx", ".pdf" },
|
||||
{ ".ppt", ".odp" },
|
||||
{ ".ppt", ".pdf" },
|
||||
{ ".ppt", ".pptx" },
|
||||
{ ".pptm", ".odp" },
|
||||
{ ".pptm", ".pdf" },
|
||||
{ ".pptm", ".pptx" },
|
||||
{ ".ppsx", ".pptx" },
|
||||
{ ".pptt", ".odp" },
|
||||
{ ".potx", ".pptx" },
|
||||
{ ".potx", ".odp" },
|
||||
{ ".odt", ".pdf" },
|
||||
{ ".odt", ".rtf" },
|
||||
{ ".odt", ".txt" },
|
||||
{ ".ott", ".docx" },
|
||||
{ ".ott", ".odt" },
|
||||
{ ".ott", ".pdf" },
|
||||
{ ".potx", ".pdf" },
|
||||
{ ".ott", ".rtf" },
|
||||
{ ".pot", ".odp" },
|
||||
{ ".pot", ".pdf" },
|
||||
{ ".pot", ".pptx" },
|
||||
{ ".potm", ".odp" },
|
||||
{ ".potm", ".pdf" },
|
||||
{ ".potm", ".pptx" },
|
||||
{ ".ott", ".txt" },
|
||||
{ ".odt", ".docx" },
|
||||
{ ".pptt", ".pdf" },
|
||||
{ ".pptx", ".odp" },
|
||||
{ ".xlst", ".xlsx" },
|
||||
{ ".xlst", ".csv" },
|
||||
{ ".xlst", ".ods" },
|
||||
{ ".xlt", ".csv" },
|
||||
{ ".xlt", ".ods" },
|
||||
{ ".xlt", ".pdf" },
|
||||
{ ".xlst", ".pdf" },
|
||||
{ ".xlt", ".xlsx" },
|
||||
{ ".xltm", ".ods" },
|
||||
{ ".xltm", ".pdf" },
|
||||
{ ".xltm", ".xlsx" },
|
||||
{ ".xltx", ".pdf" },
|
||||
{ ".xltx", ".csv" },
|
||||
{ ".xltx", ".ods" },
|
||||
{ ".xltm", ".csv" },
|
||||
{ ".pptt", ".pptx" },
|
||||
{ ".xlsm", ".xlsx" },
|
||||
{ ".xlsm", ".pdf" },
|
||||
{ ".pptx", ".pdf" },
|
||||
{ ".rtf", ".odp" },
|
||||
{ ".rtf", ".pdf" },
|
||||
{ ".rtf", ".docx" },
|
||||
{ ".rtf", ".txt" },
|
||||
{ ".txt", ".pdf" },
|
||||
{ ".xlsm", ".ods" },
|
||||
{ ".txt", ".docx" },
|
||||
{ ".txt", ".rtx" },
|
||||
{ ".xls", ".csv" },
|
||||
{ ".xls", ".ods" },
|
||||
{ ".xls", ".pdf" },
|
||||
{ ".xls", ".xlsx" },
|
||||
{ ".xlsm", ".csv" },
|
||||
{ ".txt", ".odp" },
|
||||
{ ".xltx", ".xlsx" },
|
||||
{ ".ots", ".xlsx" },
|
||||
{ ".ots", ".ods" },
|
||||
{ ".dot", ".odt" },
|
||||
{ ".dot", ".pdf" },
|
||||
{ ".dot", ".rtf" },
|
||||
{ ".dot", ".txt" },
|
||||
{ ".dotm", ".docx" },
|
||||
{ ".dotm", ".odt" },
|
||||
{ ".dot", ".docx" },
|
||||
{ ".dotm", ".pdf" },
|
||||
{ ".dotm", ".txt" },
|
||||
{ ".dotx", ".docx" },
|
||||
{ ".dotx", ".odt" },
|
||||
{ ".dotx", ".pdf" },
|
||||
{ ".dotx", ".rtf" },
|
||||
{ ".dotx", ".txt" },
|
||||
{ ".dotm", ".rtf" },
|
||||
{ ".epub", ".docx" },
|
||||
{ ".docx", ".txt" },
|
||||
{ ".docx", ".pdf" },
|
||||
{ ".csv", ".pdf" },
|
||||
{ ".csv", ".xlsx" },
|
||||
{ ".doc", ".docx" },
|
||||
{ ".doc", ".odt" },
|
||||
{ ".doc", ".pdf" },
|
||||
{ ".doc", ".rtf" },
|
||||
{ ".docx", ".rtf" },
|
||||
{ ".doc", ".txt" },
|
||||
{ ".docm", ".odt" },
|
||||
{ ".docm", ".pdf" },
|
||||
{ ".docm", ".rtf" },
|
||||
{ ".docm", ".txt" },
|
||||
{ ".doct", ".docx" },
|
||||
{ ".docx", ".odt" },
|
||||
{ ".docm", ".docx" },
|
||||
{ ".ots", ".pdf" },
|
||||
{ ".epub", ".odt" },
|
||||
{ ".epub", ".rtf" },
|
||||
{ ".mht", ".docx" },
|
||||
{ ".mht", ".odt" },
|
||||
{ ".mht", ".pdf" },
|
||||
{ ".mht", ".rtf" },
|
||||
{ ".mht", ".txt" },
|
||||
{ ".odp", ".pdf" },
|
||||
{ ".html", ".txt" },
|
||||
{ ".odp", ".pptx" },
|
||||
{ ".otp", ".pdf" },
|
||||
{ ".otp", ".pptx" },
|
||||
{ ".ods", ".csv" },
|
||||
{ ".ods", ".pdf" },
|
||||
{ ".ods", ".xlsx" },
|
||||
{ ".ots", ".csv" },
|
||||
{ ".otp", ".odp" },
|
||||
{ ".epub", ".pdf" },
|
||||
{ ".html", ".rtf" },
|
||||
{ ".html", ".odt" },
|
||||
{ ".epub", ".txt" },
|
||||
{ ".fodp", ".odp" },
|
||||
{ ".fodp", ".pdf" },
|
||||
{ ".fodp", ".pptx" },
|
||||
{ ".fods", ".csv" },
|
||||
{ ".fods", ".ods" },
|
||||
{ ".html", ".pdf" },
|
||||
{ ".fods", ".pdf" },
|
||||
{ ".fodt", ".docx" },
|
||||
{ ".fodt", ".odt" },
|
||||
{ ".fodt", ".pdf" },
|
||||
{ ".fodt", ".rtf" },
|
||||
{ ".fodt", ".txt" },
|
||||
{ ".html", ".docx" },
|
||||
{ ".fods", ".xlsx" },
|
||||
{ ".xps", ".pdf" }
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "files_converts");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,757 @@
|
||||
// <auto-generated />
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.FilesDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlFilesDbContext))]
|
||||
partial class FilesDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.FilesConverts", b =>
|
||||
{
|
||||
b.Property<string>("Input")
|
||||
.HasColumnName("input")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Ouput")
|
||||
.HasColumnName("output")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Input", "Ouput")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("files_converts");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Input = ".csv",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".csv",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".csv",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".doc",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".doc",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".doc",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".doc",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".doc",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docm",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docm",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docm",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docm",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docm",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".doct",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docx",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docx",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docx",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".docx",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dot",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dot",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dot",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dot",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dot",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotm",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotm",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotm",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotm",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotm",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotx",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotx",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotx",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotx",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".dotx",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".epub",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".epub",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".epub",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".epub",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".epub",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodp",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodp",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodp",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fods",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fods",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fods",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fods",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodt",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodt",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodt",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodt",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".fodt",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".html",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".html",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".html",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".html",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".html",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".mht",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".mht",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".mht",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".mht",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".mht",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".odp",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".odp",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".otp",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".otp",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".otp",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ods",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ods",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ods",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ots",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ots",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ots",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ots",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".odt",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".odt",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".odt",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".odt",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ott",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ott",
|
||||
Ouput = ".odt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ott",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ott",
|
||||
Ouput = ".rtf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ott",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pot",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pot",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pot",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".potm",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".potm",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".potm",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".potx",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".potx",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".potx",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pps",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pps",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pps",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppsm",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppsm",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppsm",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppsx",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppsx",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppsx",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppt",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppt",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".ppt",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptm",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptm",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptm",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptt",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptt",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptt",
|
||||
Ouput = ".pptx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptx",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".pptx",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".rtf",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".rtf",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".rtf",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".rtf",
|
||||
Ouput = ".txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".txt",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".txt",
|
||||
Ouput = ".docx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".txt",
|
||||
Ouput = ".odp"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".txt",
|
||||
Ouput = ".rtx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xls",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xls",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xls",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xls",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlsm",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlsm",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlsm",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlsm",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlst",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlst",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlst",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlst",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlt",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlt",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlt",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xlt",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltm",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltm",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltm",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltm",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltx",
|
||||
Ouput = ".pdf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltx",
|
||||
Ouput = ".csv"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltx",
|
||||
Ouput = ".ods"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xltx",
|
||||
Ouput = ".xlsx"
|
||||
},
|
||||
new
|
||||
{
|
||||
Input = ".xps",
|
||||
Ouput = ".pdf"
|
||||
});
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
1914
common/ASC.Core.Common/Migrations/MySql/MailDbContextMySql/20201006100707_MailDbContextMySql.Designer.cs
generated
Normal file
1914
common/ASC.Core.Common/Migrations/MySql/MailDbContextMySql/20201006100707_MailDbContextMySql.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,439 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.MailDbContextMySql
|
||||
{
|
||||
public partial class MailDbContextMySql : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "api_keys",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
access_token = table.Column<string>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_api_keys", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "greylisting_whitelist",
|
||||
columns: table => new
|
||||
{
|
||||
Comment = table.Column<string>(nullable: false),
|
||||
Source = table.Column<string>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_greylisting_whitelist", x => x.Comment);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "mail_mailbox",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
tenant = table.Column<int>(nullable: false),
|
||||
id_user = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
address = table.Column<string>(type: "varchar(255)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
name = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
enabled = table.Column<bool>(nullable: false, defaultValueSql: "'1'"),
|
||||
is_removed = table.Column<bool>(nullable: false),
|
||||
is_processed = table.Column<bool>(nullable: false),
|
||||
is_server_mailbox = table.Column<bool>(nullable: false),
|
||||
is_teamlab_mailbox = table.Column<bool>(nullable: false),
|
||||
imap = table.Column<bool>(nullable: false),
|
||||
user_online = table.Column<bool>(nullable: false),
|
||||
is_default = table.Column<bool>(nullable: false),
|
||||
msg_count_last = table.Column<int>(nullable: false),
|
||||
size_last = table.Column<int>(nullable: false),
|
||||
login_delay = table.Column<int>(nullable: false, defaultValueSql: "'30'"),
|
||||
quota_error = table.Column<bool>(nullable: false),
|
||||
imap_intervals = table.Column<string>(type: "mediumtext", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
begin_date = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "'1975-01-01 00:00:00'"),
|
||||
email_in_folder = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
pop3_password = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
smtp_password = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
token_type = table.Column<int>(nullable: false),
|
||||
token = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
id_smtp_server = table.Column<int>(nullable: false),
|
||||
id_in_server = table.Column<int>(nullable: false),
|
||||
date_checked = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
date_user_checked = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
date_login_delay_expires = table.Column<DateTime>(type: "datetime", nullable: false, defaultValueSql: "'1975-01-01 00:00:00'"),
|
||||
date_auth_error = table.Column<DateTime>(type: "datetime", nullable: true),
|
||||
date_created = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
date_modified = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_mail_mailbox", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "mail_mailbox_provider",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
name = table.Column<string>(type: "varchar(255)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
display_name = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
display_short_name = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
documentation = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_mail_mailbox_provider", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "mail_mailbox_server",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
id_provider = table.Column<int>(nullable: false),
|
||||
Type = table.Column<string>(nullable: true),
|
||||
Hostname = table.Column<string>(nullable: true),
|
||||
Port = table.Column<int>(nullable: false),
|
||||
socket_type = table.Column<string>(nullable: true),
|
||||
UserName = table.Column<string>(nullable: true),
|
||||
Authentication = table.Column<string>(nullable: true),
|
||||
is_user_data = table.Column<bool>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_mail_mailbox_server", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "mail_server_server",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
mx_record = table.Column<string>(type: "varchar(128)", nullable: false, defaultValueSql: "''")
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
connection_string = table.Column<string>(type: "text", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
server_type = table.Column<int>(nullable: false),
|
||||
smtp_settings_id = table.Column<int>(nullable: false),
|
||||
imap_settings_id = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_mail_server_server", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "mail_mailbox_provider",
|
||||
columns: new[] { "id", "display_name", "display_short_name", "documentation", "name" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 1, "1&1", "1&1", "http://hilfe-center.1und1.de/access/search/go.php?t=e698123", "1und1.de" },
|
||||
{ 141, "??????????", "INET-SHIBATA", null, "pop.shibata.ne.jp" },
|
||||
{ 142, "Posteo", "Posteo", null, "posteo.de" },
|
||||
{ 143, "???", "???", null, "purple.plala.or.jp" },
|
||||
{ 144, "qip.ru", "qip.ru", null, "qip.ru" },
|
||||
{ 145, "???", "???", null, "rainbow.plala.or.jp" },
|
||||
{ 146, "Rambler Mail", "Rambler", null, "rambler.ru" },
|
||||
{ 147, "???", "???", null, "red.plala.or.jp" },
|
||||
{ 148, "???", "???", null, "rmail.plala.or.jp" },
|
||||
{ 149, "???", "???", null, "rondo.plala.or.jp" },
|
||||
{ 150, "???", "???", null, "rose.plala.or.jp" },
|
||||
{ 151, "???", "???", null, "rouge.plala.or.jp" },
|
||||
{ 152, "RoadRunner", "RR", "http://help.rr.com/HMSFaqs/e_emailserveraddys.aspx", "rr.com" },
|
||||
{ 153, "???", "???", null, "ruby.plala.or.jp" },
|
||||
{ 154, "?????????", "Saku-Net", null, "sakunet.ne.jp" },
|
||||
{ 155, "???", "???", null, "sea.plala.or.jp" },
|
||||
{ 156, "???", "???", null, "sepia.plala.or.jp" },
|
||||
{ 157, "???", "???", null, "serenade.plala.or.jp" },
|
||||
{ 158, "Seznam", "Seznam", "http://napoveda.seznam.cz/cz/jake-jsou-adresy-pop3-a-smtp-serveru.html", "seznam.cz" },
|
||||
{ 159, "SFR / Neuf", "SFR", "http://assistance.sfr.fr/internet_neufbox-de-SFR/utiliser-email/parametrer-id-sfr/fc-505-50680", "sfr.fr" },
|
||||
{ 160, "???", "???", null, "silk.plala.or.jp" },
|
||||
{ 161, "???", "???", null, "silver.plala.or.jp" },
|
||||
{ 162, "???", "???", null, "sky.plala.or.jp" },
|
||||
{ 163, "skynet", "skynet", "http://support.en.belgacom.be/app/answers/detail/a_id/14337/kw/thunderbird", "skynet.be" },
|
||||
{ 140, "???", "???", null, "polka.plala.or.jp" },
|
||||
{ 139, "'?????????", "wind", null, "po.wind.ne.jp" },
|
||||
{ 138, "DCN???????????", "DCN", null, "po.dcn.ne.jp" },
|
||||
{ 137, "???", "???", null, "plum.plala.or.jp" },
|
||||
{ 113, "Apple iCloud", "Apple", null, "me.com" },
|
||||
{ 114, "???", "???", null, "minuet.plala.or.jp" },
|
||||
{ 115, "???????????", "IWAFUNE", null, "ml.murakami.ne.jp" },
|
||||
{ 116, "Mnet ??? ????", "Mnet???", null, "mnet.ne.jp" },
|
||||
{ 117, "mopera U", "mopera U", null, "'mopera.net" },
|
||||
{ 118, "Mozilla Corporation and Mozilla Foundation internal email addresses", "mozilla.com", null, "mozilla.com" },
|
||||
{ 119, "TikiTiki???????", "TikiTiki", null, "mx1.tiki.ne.jp" },
|
||||
{ 120, "???", "???", null, "navy.plala.or.jp" },
|
||||
{ 121, "nctsoft", "nct", null, "nctsoft.com" },
|
||||
{ 122, "@nifty", "@nifty", null, "nifty.com" },
|
||||
{ 123, "BB????", "NSAT", null, "nsat.jp" },
|
||||
{ 164, "???", "???", null, "smail.plala.or.jp" },
|
||||
{ 124, "o2 Poczta", "o2", null, "o2.pl" },
|
||||
{ 126, "Poczta Onet", "Onet", null, "onet.pl" },
|
||||
{ 127, "???", "???", null, "opal.plala.or.jp" },
|
||||
{ 128, "???", "???", null, "orange.plala.or.jp" },
|
||||
{ 129, "???", "???", null, "orchid.plala.or.jp" },
|
||||
{ 130, "OVH", "OVH", "http://guides.ovh.com/ConfigurationEmail", "ovh.net" },
|
||||
{ 131, "????FTTH", "????FTTH", null, "pal.kijimadaira.jp" },
|
||||
{ 132, "???", "???", null, "palette.plala.or.jp" },
|
||||
{ 133, "??????", "PARABOX", null, "parabox.or.jp" },
|
||||
{ 134, "Portland State University Mail", "PSU Mail", null, "pdx.edu" },
|
||||
{ 135, "???", "???", null, "peach.plala.or.jp" },
|
||||
{ 136, "PeoplePC", "PeoplePC", null, "peoplepc.com" },
|
||||
{ 125, "???", "???", null, "olive.plala.or.jp" },
|
||||
{ 112, "???", "???", null, "maroon.plala.or.jp" },
|
||||
{ 165, "???", "???", null, "snow.plala.or.jp" },
|
||||
{ 167, "???", "???", null, "sonata.plala.or.jp" },
|
||||
{ 196, "Your WildWest domain", "WildWest", null, "wildwestdomains.com" },
|
||||
{ 197, "???", "???", null, "wine.plala.or.jp" },
|
||||
{ 198, "???", "???", null, "wmail.plala.or.jp" },
|
||||
{ 199, "Poczta Wirtualna Polska", "Poczta WP", null, "wp.pl" },
|
||||
{ 200, "???", "???", null, "xmail.plala.or.jp" },
|
||||
{ 201, "?????????", "wind", null, "xp.wind.jp" },
|
||||
{ 202, "???", "???", null, "xpost.plala.or.jp" },
|
||||
{ 203, "XS4All", "XS4All", null, "xs4all.nl" },
|
||||
{ 204, "Yahoo! Mail", "Yahoo", null, "xtra.co.nz" },
|
||||
{ 205, "Yahoo! ???", "Yahoo! ??? ", null, "yahoo.co.jp" },
|
||||
{ 206, "Yahoo! Mail", "Yahoo", null, "yahoo.com" },
|
||||
{ 207, "Yandex Mail", "Yandex", null, "yandex.ru" },
|
||||
{ 208, "Yahoo! BB", "Yahoo! BB", null, "ybb.ne.jp" },
|
||||
{ 209, "???", "???", null, "yellow.plala.or.jp" },
|
||||
{ 210, "???", "???", null, "ymail.plala.or.jp" },
|
||||
{ 211, "???", "???", null, "ypost.plala.or.jp" },
|
||||
{ 212, "Ziggo", "Ziggo", null, "ziggo.nl" },
|
||||
{ 213, "???", "???", null, "zmail.plala.or.jp" },
|
||||
{ 214, "???", "???", null, "zpost.plala.or.jp" },
|
||||
{ 215, "avsmedia.com", "avsmedia", null, "avsmedia.com" },
|
||||
{ 216, "avsmedia.net", "avsmedia", null, "avsmedia.net" },
|
||||
{ 218, "ilearney.com", "ilearney.com", null, "ilearney.com" },
|
||||
{ 219, "fpl-technology.com", "fpl-technology.com", "http://fpl-technology.com", "fpl -technology.com" },
|
||||
{ 195, "???", "???", null, "white.plala.or.jp" },
|
||||
{ 194, "WEB.DE Freemail", "Web.de", "http://hilfe.freemail.web.de/freemail/e-mail/pop3/thunderbird/", "web.de" },
|
||||
{ 193, "???", "???", null, "wave.plala.or.jp" },
|
||||
{ 192, "???", "???", null, "waltz.plala.or.jp" },
|
||||
{ 168, "Strato", "Strato", null, "strato.de" },
|
||||
{ 169, "Universita degli Studi di Verona", "UniVR", null, "studenti.univr.it" },
|
||||
{ 170, "???", "???", null, "suite.plala.or.jp" },
|
||||
{ 171, "Sympatico Email", "Sympatico", "http://internet.bell.ca/index.cfm?method=content.view&category_id=585&content_id=12767", "sympatico.ca" },
|
||||
{ 172, "???", "???", null, "symphony.plala.or.jp" },
|
||||
{ 173, "T-Online", "T-Online", null, "t-online.de" },
|
||||
{ 174, "???", "???", null, "taupe.plala.or.jp" },
|
||||
{ 175, "Correo Terra", "Terra", null, "terra.es" },
|
||||
{ 176, "TikiTiki???????", "TikiTiki", null, "tiki.ne.jp" },
|
||||
{ 177, "Tiscali", "Tiscali", null, "tiscali.cz" },
|
||||
{ 178, "Tiscali Italy", "Tiscali", "http://assistenza.tiscali.it/tecnica/posta/configurazioni/", "tiscali.it" },
|
||||
{ 166, "?????????", "wind", null, "so.wind.ne.jp" },
|
||||
{ 179, "???", "???", null, "tmail.plala.or.jp" },
|
||||
{ 181, "???", "???", null, "topaz.plala.or.jp" },
|
||||
{ 182, "???", "???", null, "trio.plala.or.jp" },
|
||||
{ 183, "???", "???", null, "umail.plala.or.jp" },
|
||||
{ 184, "UM ITCS Email", "UM ITCS", null, "umich.edu" },
|
||||
{ 185, "UPC Nederland", "UPC", null, "upcmail.nl" },
|
||||
{ 186, "Verizon Online", "Verizon", null, "verizon.net" },
|
||||
{ 187, "Versatel", "Versatel", "http://www.versatel.de/hilfe/index_popup.php?einrichtung_email_programm", "versatel.de" },
|
||||
{ 188, "???", "???", null, "violet.plala.or.jp" },
|
||||
{ 189, "aikis", "aikis", null, "vm.aikis.or.jp" },
|
||||
{ 190, "???", "???", null, "vmail.plala.or.jp" },
|
||||
{ 191, "TikiTiki???????", "TikiTiki", null, "vp.tiki.ne.jp" },
|
||||
{ 180, "???", "???", null, "toccata.plala.or.jp" },
|
||||
{ 111, "?????????", "???", null, "mail.wind.ne.jp" },
|
||||
{ 110, "Telenor Danmark", "Telenor", null, "mail.telenor.dk" },
|
||||
{ 109, "mail.ru", "mail.ru", null, "mail.ru" },
|
||||
{ 30, "???????????", "CEK-Net", null, "cek.ne.jp" },
|
||||
{ 31, "UCSF CGL email", "CGL emai", null, "cgl.ucsf.edu" },
|
||||
{ 32, "Charter Commuications", "Charter", null, "charter.com" },
|
||||
{ 33, "CLIO-Net??????", "CLIO-Net", null, "clio.ne.jp" },
|
||||
{ 34, "???", "???", null, "cmail.plala.or.jp" },
|
||||
{ 35, "?????????", "wind", null, "co1.wind.ne.jp" },
|
||||
{ 36, "?????????", "wind", null, "co2.wind.ne.jp" },
|
||||
{ 37, "?????????", "wind", null, "co3.wind.ne.jp" },
|
||||
{ 38, "???", "???", null, "cocoa.plala.or.jp" },
|
||||
{ 39, "???", "Arcor", null, "coda.plala.or.jp" },
|
||||
{ 40, "???", "Comcast", null, "comcast.net" },
|
||||
{ 41, "???", "???", null, "concerto.plala.or.jp" },
|
||||
{ 42, "???", "???", null, "coral.plala.or.jp" },
|
||||
{ 43, "???", "???", null, "courante.plala.or.jp" },
|
||||
{ 44, "???", "???", null, "cpost.plala.or.jp" },
|
||||
{ 45, "???", "???", null, "cream.plala.or.jp" },
|
||||
{ 46, "???", "wind", null, "dan.wind.ne.jp" },
|
||||
{ 47, "???", "???", null, "dance.plala.or.jp" },
|
||||
{ 48, "IIJ4U", "???", null, "dd.iij4u.or.jp" },
|
||||
{ 49, "domainFACTORY", "domainFACTORY", "http://www.df.eu/de/service/df-faq/e-mail/mail-programme/", "df.eu" },
|
||||
{ 50, "???", "???", null, "dmail.plala.or.jp" },
|
||||
{ 51, "EarthLink", "EarthLink", "http://support.earthlink.net/email/email-server-settings.php", "earthlink.net" },
|
||||
{ 52, "???", "???", null, "ebony.plala.or.jp" },
|
||||
{ 29, "CC9???????????", "CC9", null, "cc9.ne.jp" },
|
||||
{ 28, "???", "???", null, "cameo.plala.or.jp" },
|
||||
{ 27, "???", "???", null, "camel.plala.or.jp" },
|
||||
{ 26, "???", "???", null, "brown.plala.or.jp" },
|
||||
{ 2, "???", "???", null, "abc.plala.or.jp" },
|
||||
{ 3, "???", "???", null, "agate.plala.or.jp" },
|
||||
{ 4, "Alice Italy", "Alice", "http://aiuto.alice.it/informazioni/clientemail/thunderbird.html", "alice.it" },
|
||||
{ 5, "???", "???", null, "amail.plala.or.jp" },
|
||||
{ 6, "???", "???", null, "amber.plala.or.jp" },
|
||||
{ 7, "AOL Mail", "AOL", null, "aol.com" },
|
||||
{ 8, "???", "???", null, "apost.plala.or.jp" },
|
||||
{ 9, "???", "???", null, "aqua.plala.or.jp" },
|
||||
{ 10, "Arcor", "Arcor", null, "arcor.de" },
|
||||
{ 11, "Aruba PEC", "Aruba", "http://pec.aruba.it/guide_filmate.asp", "arubapec.it" },
|
||||
{ 12, "AT&T", "AT&T", "http://www.att.com/esupport/article.jsp?sid=KB401570&ct=9000152", "att.net" },
|
||||
{ 53, "email.it", "email.it", "http://www.email.it/ita/config/thunder.php", "email.it" },
|
||||
{ 13, "???", "???", null, "ballade.plala.or.jp" },
|
||||
{ 15, "BB????", "BB-NIIGATA", null, "bb-niigata.jp" },
|
||||
{ 16, "???", "???", null, "beige.plala.or.jp" },
|
||||
{ 17, "Biglobe", "Biglobe", null, "biglobe.ne.jp" },
|
||||
{ 18, "Telstra Bigpond", "Bigpond", null, "bigpond.com" },
|
||||
{ 19, "???", "???", null, "blue.plala.or.jp" },
|
||||
{ 20, "bluewin.ch", "bluewin.ch", "http://smtphelp.bluewin.ch/swisscomdtg/setup/?", "bluemail.ch" },
|
||||
{ 21, "bluewin.ch", "bluewin.ch", "http://smtphelp.bluewin.ch/swisscomdtg/setup/", "bluewin.ch" },
|
||||
{ 22, "???", "???", null, "bmail.plala.or.jp" },
|
||||
{ 23, "???", "???", null, "bolero.plala.or.jp" },
|
||||
{ 24, "???", "???", null, "bpost.plala.or.jp" },
|
||||
{ 25, "???", "???", null, "broba.cc" },
|
||||
{ 14, "?????????", "wind", null, "bay.wind.ne.jp" },
|
||||
{ 54, "???", "???", null, "email.plala.or.jp" },
|
||||
{ 55, "EWE Tel", "EWE Tel", null, "ewetel.de" },
|
||||
{ 56, "???", "???", null, "fantasy.plala.or.jp" },
|
||||
{ 85, "IPAX Internet Services", "IPAX", null, "ipax.at" },
|
||||
{ 86, "???", "???", null, "ivory.plala.or.jp" },
|
||||
{ 87, "???????????", "IWAFUNE", null, "iwafune.ne.jp" },
|
||||
{ 88, "???", "???", null, "jade.plala.or.jp" },
|
||||
{ 89, "Janis", "Janis", null, "janis.or.jp" },
|
||||
{ 90, "JETINTERNET", "JET", null, "jet.ne.jp" },
|
||||
{ 91, "JETINTERNET", "JET", null, "ji.jet.ne.jp" },
|
||||
{ 92, "???", "???", null, "jmail.plala.or.jp" },
|
||||
{ 93, "Kabel Deutschland", "Kabel D", null, "kabelmail.de" },
|
||||
{ 94, "KELCOM Internet", "KELCOM", null, "kelcom.net" },
|
||||
{ 95, "???", "???", null, "khaki.plala.or.jp" },
|
||||
{ 84, "Internode", "Internode", "http://www.internode.on.net/support/guides/email/secure_email/", "internode.on.net" },
|
||||
{ 96, "?????????", "wind", null, "kl.wind.ne.jp" },
|
||||
{ 98, "????????????", "?????", null, "kokuyou.ne.jp" },
|
||||
{ 99, "???", "???", null, "lapis.plala.or.jp" },
|
||||
{ 100, "LaPoste", "LaPoste", "http://www.geckozone.org/forum/viewtopic.php?f=4&t=93118", "laposte.net" },
|
||||
{ 101, "???", "???", null, "lemon.plala.or.jp" },
|
||||
{ 102, "Libero Mail", "Libero", "http://aiuto.libero.it/mail/istruzioni/configura-mozilla-thunderbird-per-windows-a11.phtml", "libero.it" },
|
||||
{ 103, "???", "???", null, "lilac.plala.or.jp" },
|
||||
{ 104, "???", "???", null, "lime.plala.or.jp" },
|
||||
{ 105, "???????????", "????", null, "mahoroba.ne.jp" },
|
||||
{ 106, "mail.com", "mail.com", null, "mail.com" },
|
||||
{ 107, "TDC (DK)", "TDC", null, "mail.dk" },
|
||||
{ 108, "???????????", "IWAFUNE", null, "mail.iwafune.ne.jp" },
|
||||
{ 97, "???", "???", null, "kmail.plala.or.jp" },
|
||||
{ 220, "Apple iCloud", "Apple", null, "icloud.com" },
|
||||
{ 83, "??????????", "INET-SHIBATA", null, "inet-shibata.or.jp" },
|
||||
{ 81, "Inbox.lv", "Inbox.lv", null, "inbox.lv" },
|
||||
{ 57, "???", "???", null, "flamenco.plala.or.jp" },
|
||||
{ 58, "???", "???", null, "fmail.plala.or.jp" },
|
||||
{ 59, "France Telecom / Orange", "Orange", null, "francetelecom.fr" },
|
||||
{ 60, "Free Telecom", "free.fr", "http://www.free.fr/assistance/599-thunderbird.html", "free.fr" },
|
||||
{ 61, "Freenet Mail", "Freenet", null, "freenet.de" },
|
||||
{ 62, "???", "???", null, "fuga.plala.or.jp" },
|
||||
{ 63, "Gandi Mail", "Gandi", null, "gandi.net" },
|
||||
{ 64, "???", "???", null, "gmail.plala.or.jp" },
|
||||
{ 65, "GMX Freemail", "GMX", null, "gmx.com" },
|
||||
{ 66, "GMX Freemail", "GMX", null, "gmx.net" },
|
||||
{ 67, "????????????????????", "TVM-Net", null, "go.tvm.ne.jp" },
|
||||
{ 82, "???", "???", null, "indigo.plala.or.jp" },
|
||||
{ 68, "goo ????????", "goo", null, "goo.jp" },
|
||||
{ 70, "???", "???", null, "grape.plala.or.jp" },
|
||||
{ 71, "???", "???", null, "gray.plala.or.jp" },
|
||||
{ 72, "?????????", "HAL", null, "hal.ne.jp" },
|
||||
{ 73, "????????", "????", null, "hana.or.jp" },
|
||||
{ 74, "Microsoft Live Hotmail", "Hotmail", null, "hotmail.com" },
|
||||
{ 75, "SoftBank", "SoftBank", null, "i.softbank.jp" },
|
||||
{ 76, "IC-NET", "IC-NET", null, "ic-net.or.jp" },
|
||||
{ 77, "IIJmio ????????", "IIJmio", null, "iijmio-mail.jp" },
|
||||
{ 78, "???????i?????", "i?????", null, "iiyama-catv.ne.jp" },
|
||||
{ 79, "???", "???", null, "imail.plala.or.jp" },
|
||||
{ 80, "Inbox.lt", "Inbox.lt", null, "inbox.lt" },
|
||||
{ 69, "Google Mail", "GMail", null, "googlemail.com" },
|
||||
{ 221, "Microsoft Office 365", "Office365", "https://products.office.com", "office365.com" }
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "address_index",
|
||||
table: "mail_mailbox",
|
||||
column: "address");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "main_mailbox_id_in_server_mail_mailbox_server_id",
|
||||
table: "mail_mailbox",
|
||||
column: "id_in_server");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "main_mailbox_id_smtp_server_mail_mailbox_server_id",
|
||||
table: "mail_mailbox",
|
||||
column: "id_smtp_server");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "date_login_delay_expires",
|
||||
table: "mail_mailbox",
|
||||
columns: new[] { "date_checked", "date_login_delay_expires" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "user_id_index",
|
||||
table: "mail_mailbox",
|
||||
columns: new[] { "tenant", "id_user" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "mail_server_server_type_server_type_fk_id",
|
||||
table: "mail_server_server",
|
||||
column: "server_type");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "api_keys");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "greylisting_whitelist");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "mail_mailbox");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "mail_mailbox_provider");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "mail_mailbox_server");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "mail_server_server");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,409 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.MessagesContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlMessagesContext))]
|
||||
[Migration("20201006100833_MessagesContextMySql")]
|
||||
partial class MessagesContextMySql
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.AuditEvent", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Action")
|
||||
.HasColumnName("action")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Browser")
|
||||
.HasColumnName("browser")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("Date")
|
||||
.HasColumnName("date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnName("description")
|
||||
.HasColumnType("varchar(20000)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Initiator")
|
||||
.HasColumnName("initiator")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Ip")
|
||||
.HasColumnName("ip")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Page")
|
||||
.HasColumnName("page")
|
||||
.HasColumnType("varchar(300)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Platform")
|
||||
.HasColumnName("platform")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Target")
|
||||
.HasColumnName("target")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.IsRequired()
|
||||
.HasColumnName("user_id")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("TenantId", "Date")
|
||||
.HasName("date");
|
||||
|
||||
b.ToTable("audit_events");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenant", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Alias")
|
||||
.IsRequired()
|
||||
.HasColumnName("alias")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Calls")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("calls")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasDefaultValueSql("true");
|
||||
|
||||
b.Property<DateTime>("CreationDateTime")
|
||||
.HasColumnName("creationdatetime")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int?>("Industry")
|
||||
.HasColumnName("industry")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Language")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("language")
|
||||
.HasColumnType("char(10)")
|
||||
.HasDefaultValueSql("'en-US'")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("MappedDomain")
|
||||
.HasColumnName("mappeddomain")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnName("name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("OwnerId")
|
||||
.IsRequired()
|
||||
.HasColumnName("owner_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("PaymentId")
|
||||
.HasColumnName("payment_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Public")
|
||||
.HasColumnName("public")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("PublicVisibleProducts")
|
||||
.HasColumnName("publicvisibleproducts")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Spam")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("spam")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasDefaultValueSql("true");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.HasColumnName("status")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("StatusChanged")
|
||||
.HasColumnName("statuschanged")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("TimeZone")
|
||||
.HasColumnName("timezone")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("TrustedDomains")
|
||||
.HasColumnName("trusteddomains")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TrustedDomainsEnabled")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("trusteddomainsenabled")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'1'");
|
||||
|
||||
b.Property<int>("Version")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("version")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'2'");
|
||||
|
||||
b.Property<DateTime>("VersionChanged")
|
||||
.HasColumnName("version_changed")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<DateTime?>("Version_Changed")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.HasIndex("MappedDomain")
|
||||
.HasName("mappeddomain");
|
||||
|
||||
b.HasIndex("Version")
|
||||
.HasName("version");
|
||||
|
||||
b.ToTable("tenants_tenants","onlyoffice");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
Alias = "localhost",
|
||||
Calls = false,
|
||||
CreationDateTime = new DateTime(2020, 10, 6, 10, 8, 33, 104, DateTimeKind.Utc).AddTicks(3779),
|
||||
LastModified = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
Name = "Web Office",
|
||||
OwnerId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
Public = false,
|
||||
Spam = false,
|
||||
Status = 0,
|
||||
TrustedDomainsEnabled = 0,
|
||||
Version = 0,
|
||||
VersionChanged = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantPartner", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("AffiliateId")
|
||||
.HasColumnName("affiliate_id")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.Property<string>("Campaign")
|
||||
.HasColumnName("campaign")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.Property<string>("PartnerId")
|
||||
.HasColumnName("partner_id")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.HasKey("TenantId");
|
||||
|
||||
b.ToTable("tenants_partners");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioSettings", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("TenantID")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Id")
|
||||
.HasColumnName("ID")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("UserID")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Data")
|
||||
.IsRequired()
|
||||
.HasColumnType("mediumtext")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("TenantId", "Id", "UserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("Id")
|
||||
.HasName("ID");
|
||||
|
||||
b.ToTable("webstudio_settings");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
TenantId = 1,
|
||||
Id = "9a925891-1f92-4ed7-b277-d6f649739f06",
|
||||
UserId = "00000000-0000-0000-0000-000000000000",
|
||||
Data = "{'Analytics':true,'Completed':true}"
|
||||
},
|
||||
new
|
||||
{
|
||||
TenantId = 1,
|
||||
Id = "ab5b3c97-a972-475c-bb13-71936186c4e6",
|
||||
UserId = "00000000-0000-0000-0000-000000000000",
|
||||
Data = "{'ColorThemeName':'pure - orange','FirstRequest':false}"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.LoginEvents", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Action")
|
||||
.HasColumnName("action")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Browser")
|
||||
.HasColumnName("browser")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("Date")
|
||||
.HasColumnName("date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnName("description")
|
||||
.HasColumnType("varchar(500)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Ip")
|
||||
.HasColumnName("ip")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Login")
|
||||
.HasColumnName("login")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Page")
|
||||
.HasColumnName("page")
|
||||
.HasColumnType("varchar(300)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Platform")
|
||||
.HasColumnName("platform")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.IsRequired()
|
||||
.HasColumnName("user_id")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("Date")
|
||||
.HasName("date");
|
||||
|
||||
b.HasIndex("TenantId", "UserId")
|
||||
.HasName("tenant_id");
|
||||
|
||||
b.ToTable("login_events");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantPartner", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant")
|
||||
.WithOne("Partner")
|
||||
.HasForeignKey("ASC.Core.Common.EF.Model.DbTenantPartner", "TenantId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,114 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.MessagesContextMySql
|
||||
{
|
||||
public partial class MessagesContextMySql : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "audit_events",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
ip = table.Column<string>(type: "varchar(50)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
browser = table.Column<string>(type: "varchar(200)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
platform = table.Column<string>(type: "varchar(200)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
date = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
user_id = table.Column<string>(type: "char(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
page = table.Column<string>(type: "varchar(300)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
action = table.Column<int>(nullable: false),
|
||||
description = table.Column<string>(type: "varchar(20000)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
initiator = table.Column<string>(type: "varchar(200)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
target = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_audit_events", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "login_events",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
ip = table.Column<string>(type: "varchar(50)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
browser = table.Column<string>(type: "varchar(200)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
platform = table.Column<string>(type: "varchar(200)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
date = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
user_id = table.Column<string>(type: "char(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
page = table.Column<string>(type: "varchar(300)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
action = table.Column<int>(nullable: false),
|
||||
description = table.Column<string>(type: "varchar(500)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
login = table.Column<string>(type: "varchar(200)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_login_events", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "date",
|
||||
table: "audit_events",
|
||||
columns: new[] { "tenant_id", "date" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "date",
|
||||
table: "login_events",
|
||||
column: "date");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "tenant_id",
|
||||
table: "login_events",
|
||||
columns: new[] { "tenant_id", "user_id" });
|
||||
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "audit_events");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "login_events");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,407 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.MessagesContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlMessagesContext))]
|
||||
partial class MessagesContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.AuditEvent", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Action")
|
||||
.HasColumnName("action")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Browser")
|
||||
.HasColumnName("browser")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("Date")
|
||||
.HasColumnName("date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnName("description")
|
||||
.HasColumnType("varchar(20000)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Initiator")
|
||||
.HasColumnName("initiator")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Ip")
|
||||
.HasColumnName("ip")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Page")
|
||||
.HasColumnName("page")
|
||||
.HasColumnType("varchar(300)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Platform")
|
||||
.HasColumnName("platform")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Target")
|
||||
.HasColumnName("target")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.IsRequired()
|
||||
.HasColumnName("user_id")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("TenantId", "Date")
|
||||
.HasName("date");
|
||||
|
||||
b.ToTable("audit_events");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenant", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Alias")
|
||||
.IsRequired()
|
||||
.HasColumnName("alias")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Calls")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("calls")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasDefaultValueSql("true");
|
||||
|
||||
b.Property<DateTime>("CreationDateTime")
|
||||
.HasColumnName("creationdatetime")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int?>("Industry")
|
||||
.HasColumnName("industry")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Language")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("language")
|
||||
.HasColumnType("char(10)")
|
||||
.HasDefaultValueSql("'en-US'")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("MappedDomain")
|
||||
.HasColumnName("mappeddomain")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnName("name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("OwnerId")
|
||||
.IsRequired()
|
||||
.HasColumnName("owner_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("PaymentId")
|
||||
.HasColumnName("payment_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Public")
|
||||
.HasColumnName("public")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("PublicVisibleProducts")
|
||||
.HasColumnName("publicvisibleproducts")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Spam")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("spam")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasDefaultValueSql("true");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.HasColumnName("status")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("StatusChanged")
|
||||
.HasColumnName("statuschanged")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("TimeZone")
|
||||
.HasColumnName("timezone")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("TrustedDomains")
|
||||
.HasColumnName("trusteddomains")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TrustedDomainsEnabled")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("trusteddomainsenabled")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'1'");
|
||||
|
||||
b.Property<int>("Version")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("version")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'2'");
|
||||
|
||||
b.Property<DateTime>("VersionChanged")
|
||||
.HasColumnName("version_changed")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<DateTime?>("Version_Changed")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.HasIndex("MappedDomain")
|
||||
.HasName("mappeddomain");
|
||||
|
||||
b.HasIndex("Version")
|
||||
.HasName("version");
|
||||
|
||||
b.ToTable("tenants_tenants","onlyoffice");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
Alias = "localhost",
|
||||
Calls = false,
|
||||
CreationDateTime = new DateTime(2020, 10, 6, 10, 8, 33, 104, DateTimeKind.Utc).AddTicks(3779),
|
||||
LastModified = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
Name = "Web Office",
|
||||
OwnerId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
Public = false,
|
||||
Spam = false,
|
||||
Status = 0,
|
||||
TrustedDomainsEnabled = 0,
|
||||
Version = 0,
|
||||
VersionChanged = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantPartner", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("AffiliateId")
|
||||
.HasColumnName("affiliate_id")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.Property<string>("Campaign")
|
||||
.HasColumnName("campaign")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.Property<string>("PartnerId")
|
||||
.HasColumnName("partner_id")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.HasKey("TenantId");
|
||||
|
||||
b.ToTable("tenants_partners");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioSettings", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("TenantID")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Id")
|
||||
.HasColumnName("ID")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("UserID")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Data")
|
||||
.IsRequired()
|
||||
.HasColumnType("mediumtext")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("TenantId", "Id", "UserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("Id")
|
||||
.HasName("ID");
|
||||
|
||||
b.ToTable("webstudio_settings");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
TenantId = 1,
|
||||
Id = "9a925891-1f92-4ed7-b277-d6f649739f06",
|
||||
UserId = "00000000-0000-0000-0000-000000000000",
|
||||
Data = "{'Analytics':true,'Completed':true}"
|
||||
},
|
||||
new
|
||||
{
|
||||
TenantId = 1,
|
||||
Id = "ab5b3c97-a972-475c-bb13-71936186c4e6",
|
||||
UserId = "00000000-0000-0000-0000-000000000000",
|
||||
Data = "{'ColorThemeName':'pure - orange','FirstRequest':false}"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.LoginEvents", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Action")
|
||||
.HasColumnName("action")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Browser")
|
||||
.HasColumnName("browser")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("Date")
|
||||
.HasColumnName("date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnName("description")
|
||||
.HasColumnType("varchar(500)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Ip")
|
||||
.HasColumnName("ip")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Login")
|
||||
.HasColumnName("login")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Page")
|
||||
.HasColumnName("page")
|
||||
.HasColumnType("varchar(300)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Platform")
|
||||
.HasColumnName("platform")
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.IsRequired()
|
||||
.HasColumnName("user_id")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("Date")
|
||||
.HasName("date");
|
||||
|
||||
b.HasIndex("TenantId", "UserId")
|
||||
.HasName("tenant_id");
|
||||
|
||||
b.ToTable("login_events");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantPartner", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant")
|
||||
.WithOne("Partner")
|
||||
.HasForeignKey("ASC.Core.Common.EF.Model.DbTenantPartner", "TenantId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,130 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.NotifyDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlNotifyDbContext))]
|
||||
[Migration("20201006101002_NotifyDbContextMySql")]
|
||||
partial class NotifyDbContextMySql
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.NotifyInfo", b =>
|
||||
{
|
||||
b.Property<int>("NotifyId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("notify_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Attempts")
|
||||
.HasColumnName("attempts")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("ModifyDate")
|
||||
.HasColumnName("modify_date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("Priority")
|
||||
.HasColumnName("priority")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("State")
|
||||
.HasColumnName("state")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("NotifyId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("State")
|
||||
.HasName("state");
|
||||
|
||||
b.ToTable("notify_info");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.NotifyQueue", b =>
|
||||
{
|
||||
b.Property<int>("NotifyId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("notify_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Attachments")
|
||||
.HasColumnName("attachments")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("AutoSubmitted")
|
||||
.HasColumnName("auto_submitted")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Content")
|
||||
.HasColumnName("content")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ContentType")
|
||||
.HasColumnName("content_type")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.HasColumnName("creation_date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Reciever")
|
||||
.HasColumnName("reciever")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ReplyTo")
|
||||
.HasColumnName("reply_to")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Sender")
|
||||
.HasColumnName("sender")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("SenderType")
|
||||
.HasColumnName("sender_type")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Subject")
|
||||
.HasColumnName("subject")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("NotifyId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("notify_queue");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.NotifyDbContextMySql
|
||||
{
|
||||
public partial class NotifyDbContextMySql : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "notify_info",
|
||||
columns: table => new
|
||||
{
|
||||
notify_id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
state = table.Column<int>(nullable: false),
|
||||
attempts = table.Column<int>(nullable: false),
|
||||
modify_date = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
priority = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => x.notify_id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "notify_queue",
|
||||
columns: table => new
|
||||
{
|
||||
notify_id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
sender = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
reciever = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
subject = table.Column<string>(type: "varchar(1024)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
content_type = table.Column<string>(type: "varchar(64)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
content = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
sender_type = table.Column<string>(type: "varchar(64)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
reply_to = table.Column<string>(type: "varchar(1024)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
creation_date = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
attachments = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
auto_submitted = table.Column<string>(type: "varchar(64)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => x.notify_id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "state",
|
||||
table: "notify_info",
|
||||
column: "state");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "notify_info");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "notify_queue");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,128 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.NotifyDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlNotifyDbContext))]
|
||||
partial class NotifyDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.NotifyInfo", b =>
|
||||
{
|
||||
b.Property<int>("NotifyId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("notify_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Attempts")
|
||||
.HasColumnName("attempts")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("ModifyDate")
|
||||
.HasColumnName("modify_date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("Priority")
|
||||
.HasColumnName("priority")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("State")
|
||||
.HasColumnName("state")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("NotifyId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("State")
|
||||
.HasName("state");
|
||||
|
||||
b.ToTable("notify_info");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.NotifyQueue", b =>
|
||||
{
|
||||
b.Property<int>("NotifyId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("notify_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Attachments")
|
||||
.HasColumnName("attachments")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("AutoSubmitted")
|
||||
.HasColumnName("auto_submitted")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Content")
|
||||
.HasColumnName("content")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ContentType")
|
||||
.HasColumnName("content_type")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.HasColumnName("creation_date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Reciever")
|
||||
.HasColumnName("reciever")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ReplyTo")
|
||||
.HasColumnName("reply_to")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Sender")
|
||||
.HasColumnName("sender")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("SenderType")
|
||||
.HasColumnName("sender_type")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Subject")
|
||||
.HasColumnName("subject")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("NotifyId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("notify_queue");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,316 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.ResourceDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlResourceDbContext))]
|
||||
[Migration("20201006101131_ResourceDbContextMySql")]
|
||||
partial class ResourceDbContextMySql
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Resource.ResAuthors", b =>
|
||||
{
|
||||
b.Property<string>("Login")
|
||||
.HasColumnName("login")
|
||||
.HasColumnType("varchar(150)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("IsAdmin")
|
||||
.HasColumnName("isAdmin")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<DateTime>("LastVisit")
|
||||
.HasColumnName("lastVisit")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<bool>("Online")
|
||||
.HasColumnName("online")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("Password")
|
||||
.IsRequired()
|
||||
.HasColumnName("password")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Login")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("res_authors");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Resource.ResAuthorsFile", b =>
|
||||
{
|
||||
b.Property<string>("AuthorLogin")
|
||||
.HasColumnName("authorLogin")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("FileId")
|
||||
.HasColumnName("fileid")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("WriteAccess")
|
||||
.HasColumnName("writeAccess")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.HasKey("AuthorLogin", "FileId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("FileId")
|
||||
.HasName("res_authorsfile_FK2");
|
||||
|
||||
b.ToTable("res_authorsfile");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Resource.ResAuthorsLang", b =>
|
||||
{
|
||||
b.Property<string>("AuthorLogin")
|
||||
.HasColumnName("authorLogin")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("CultureTitle")
|
||||
.HasColumnName("cultureTitle")
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("AuthorLogin", "CultureTitle")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("CultureTitle")
|
||||
.HasName("res_authorslang_FK2");
|
||||
|
||||
b.ToTable("res_authorslang");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Resource.ResCultures", b =>
|
||||
{
|
||||
b.Property<string>("Title")
|
||||
.HasColumnName("title")
|
||||
.HasColumnType("varchar(120)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Available")
|
||||
.HasColumnName("available")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("creationDate")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("Value")
|
||||
.IsRequired()
|
||||
.HasColumnName("value")
|
||||
.HasColumnType("varchar(120)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Title")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("res_cultures");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Resource.ResData", b =>
|
||||
{
|
||||
b.Property<int>("FileId")
|
||||
.HasColumnName("fileid")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("CultureTitle")
|
||||
.HasColumnName("cultureTitle")
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.HasColumnName("title")
|
||||
.HasColumnType("varchar(120)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("AuthorLogin")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("authorLogin")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasDefaultValueSql("'Console'")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnName("description")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Flag")
|
||||
.HasColumnName("flag")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Link")
|
||||
.HasColumnName("link")
|
||||
.HasColumnType("varchar(120)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ResourceType")
|
||||
.HasColumnName("resourceType")
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("TextValue")
|
||||
.HasColumnName("textValue")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("TimeChanges")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnName("timeChanges")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.HasKey("FileId", "CultureTitle", "Title")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("CultureTitle")
|
||||
.HasName("resources_FK2");
|
||||
|
||||
b.HasIndex("Id")
|
||||
.IsUnique()
|
||||
.HasName("id");
|
||||
|
||||
b.HasIndex("TimeChanges")
|
||||
.HasName("dateIndex");
|
||||
|
||||
b.ToTable("res_data");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Resource.ResFiles", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("creationDate")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("'0000-00-00 00:00:00'");
|
||||
|
||||
b.Property<bool>("IsLock")
|
||||
.HasColumnName("isLock")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<DateTime>("LastUpdate")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnName("lastUpdate")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("ModuleName")
|
||||
.IsRequired()
|
||||
.HasColumnName("moduleName")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ProjectName")
|
||||
.IsRequired()
|
||||
.HasColumnName("projectName")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ResName")
|
||||
.IsRequired()
|
||||
.HasColumnName("resName")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ResName")
|
||||
.IsUnique()
|
||||
.HasName("resname");
|
||||
|
||||
b.ToTable("res_files");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Resource.ResReserve", b =>
|
||||
{
|
||||
b.Property<int>("FileId")
|
||||
.HasColumnName("fileid")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.HasColumnName("title")
|
||||
.HasColumnType("varchar(120)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("CultureTitle")
|
||||
.HasColumnName("cultureTitle")
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Flag")
|
||||
.HasColumnName("flag")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("TextValue")
|
||||
.HasColumnName("textValue")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("FileId", "Title", "CultureTitle")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("CultureTitle")
|
||||
.HasName("resources_FK2");
|
||||
|
||||
b.HasIndex("Id")
|
||||
.IsUnique()
|
||||
.HasName("id");
|
||||
|
||||
b.ToTable("res_reserve");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,231 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.ResourceDbContextMySql
|
||||
{
|
||||
public partial class ResourceDbContextMySql : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "res_authors",
|
||||
columns: table => new
|
||||
{
|
||||
login = table.Column<string>(type: "varchar(150)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
password = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
isAdmin = table.Column<bool>(nullable: false),
|
||||
online = table.Column<bool>(nullable: false),
|
||||
lastVisit = table.Column<DateTime>(type: "datetime", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => x.login);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "res_authorsfile",
|
||||
columns: table => new
|
||||
{
|
||||
authorLogin = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
fileid = table.Column<int>(nullable: false),
|
||||
writeAccess = table.Column<bool>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.authorLogin, x.fileid });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "res_authorslang",
|
||||
columns: table => new
|
||||
{
|
||||
authorLogin = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
cultureTitle = table.Column<string>(type: "varchar(20)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.authorLogin, x.cultureTitle });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "res_cultures",
|
||||
columns: table => new
|
||||
{
|
||||
title = table.Column<string>(type: "varchar(120)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
value = table.Column<string>(type: "varchar(120)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
available = table.Column<bool>(nullable: false),
|
||||
creationDate = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => x.title);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "res_data",
|
||||
columns: table => new
|
||||
{
|
||||
fileid = table.Column<int>(nullable: false),
|
||||
title = table.Column<string>(type: "varchar(120)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
cultureTitle = table.Column<string>(type: "varchar(20)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
textValue = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
description = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
timeChanges = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP"),
|
||||
resourceType = table.Column<string>(type: "varchar(20)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
flag = table.Column<int>(nullable: false),
|
||||
link = table.Column<string>(type: "varchar(120)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
authorLogin = table.Column<string>(type: "varchar(50)", nullable: false, defaultValueSql: "'Console'")
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.fileid, x.cultureTitle, x.title, x.id });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "id",
|
||||
table: "res_data",
|
||||
column: "id",
|
||||
unique: true);
|
||||
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "res_files",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
projectName = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
moduleName = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
resName = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
isLock = table.Column<bool>(nullable: false),
|
||||
lastUpdate = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP"),
|
||||
creationDate = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "'0000-00-00 00:00:00'")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_res_files", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "res_reserve",
|
||||
columns: table => new
|
||||
{
|
||||
fileid = table.Column<int>(nullable: false),
|
||||
title = table.Column<string>(type: "varchar(120)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
cultureTitle = table.Column<string>(type: "varchar(20)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
textValue = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
flag = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.fileid, x.title, x.cultureTitle, x.id });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "res_authorsfile_FK2",
|
||||
table: "res_authorsfile",
|
||||
column: "fileid");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "res_authorslang_FK2",
|
||||
table: "res_authorslang",
|
||||
column: "cultureTitle");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "resources_FK2",
|
||||
table: "res_data",
|
||||
column: "cultureTitle");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "dateIndex",
|
||||
table: "res_data",
|
||||
column: "timeChanges");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "resname",
|
||||
table: "res_files",
|
||||
column: "resName",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "resources_FK2",
|
||||
table: "res_reserve",
|
||||
column: "cultureTitle");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "id",
|
||||
table: "res_reserve",
|
||||
column: "id",
|
||||
unique: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "res_authors");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "res_authorsfile");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "res_authorslang");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "res_cultures");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "res_data");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "res_files");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "res_reserve");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,314 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.ResourceDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlResourceDbContext))]
|
||||
partial class ResourceDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Resource.ResAuthors", b =>
|
||||
{
|
||||
b.Property<string>("Login")
|
||||
.HasColumnName("login")
|
||||
.HasColumnType("varchar(150)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("IsAdmin")
|
||||
.HasColumnName("isAdmin")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<DateTime>("LastVisit")
|
||||
.HasColumnName("lastVisit")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<bool>("Online")
|
||||
.HasColumnName("online")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("Password")
|
||||
.IsRequired()
|
||||
.HasColumnName("password")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Login")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("res_authors");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Resource.ResAuthorsFile", b =>
|
||||
{
|
||||
b.Property<string>("AuthorLogin")
|
||||
.HasColumnName("authorLogin")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("FileId")
|
||||
.HasColumnName("fileid")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("WriteAccess")
|
||||
.HasColumnName("writeAccess")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.HasKey("AuthorLogin", "FileId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("FileId")
|
||||
.HasName("res_authorsfile_FK2");
|
||||
|
||||
b.ToTable("res_authorsfile");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Resource.ResAuthorsLang", b =>
|
||||
{
|
||||
b.Property<string>("AuthorLogin")
|
||||
.HasColumnName("authorLogin")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("CultureTitle")
|
||||
.HasColumnName("cultureTitle")
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("AuthorLogin", "CultureTitle")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("CultureTitle")
|
||||
.HasName("res_authorslang_FK2");
|
||||
|
||||
b.ToTable("res_authorslang");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Resource.ResCultures", b =>
|
||||
{
|
||||
b.Property<string>("Title")
|
||||
.HasColumnName("title")
|
||||
.HasColumnType("varchar(120)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Available")
|
||||
.HasColumnName("available")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("creationDate")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("Value")
|
||||
.IsRequired()
|
||||
.HasColumnName("value")
|
||||
.HasColumnType("varchar(120)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Title")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("res_cultures");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Resource.ResData", b =>
|
||||
{
|
||||
b.Property<int>("FileId")
|
||||
.HasColumnName("fileid")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("CultureTitle")
|
||||
.HasColumnName("cultureTitle")
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.HasColumnName("title")
|
||||
.HasColumnType("varchar(120)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("AuthorLogin")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("authorLogin")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasDefaultValueSql("'Console'")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnName("description")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Flag")
|
||||
.HasColumnName("flag")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Link")
|
||||
.HasColumnName("link")
|
||||
.HasColumnType("varchar(120)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ResourceType")
|
||||
.HasColumnName("resourceType")
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("TextValue")
|
||||
.HasColumnName("textValue")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("TimeChanges")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnName("timeChanges")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.HasKey("FileId", "CultureTitle", "Title")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("CultureTitle")
|
||||
.HasName("resources_FK2");
|
||||
|
||||
b.HasIndex("Id")
|
||||
.IsUnique()
|
||||
.HasName("id");
|
||||
|
||||
b.HasIndex("TimeChanges")
|
||||
.HasName("dateIndex");
|
||||
|
||||
b.ToTable("res_data");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Resource.ResFiles", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("creationDate")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("'0000-00-00 00:00:00'");
|
||||
|
||||
b.Property<bool>("IsLock")
|
||||
.HasColumnName("isLock")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<DateTime>("LastUpdate")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnName("lastUpdate")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("ModuleName")
|
||||
.IsRequired()
|
||||
.HasColumnName("moduleName")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ProjectName")
|
||||
.IsRequired()
|
||||
.HasColumnName("projectName")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ResName")
|
||||
.IsRequired()
|
||||
.HasColumnName("resName")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ResName")
|
||||
.IsUnique()
|
||||
.HasName("resname");
|
||||
|
||||
b.ToTable("res_files");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.Resource.ResReserve", b =>
|
||||
{
|
||||
b.Property<int>("FileId")
|
||||
.HasColumnName("fileid")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.HasColumnName("title")
|
||||
.HasColumnType("varchar(120)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("CultureTitle")
|
||||
.HasColumnName("cultureTitle")
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Flag")
|
||||
.HasColumnName("flag")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("TextValue")
|
||||
.HasColumnName("textValue")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("FileId", "Title", "CultureTitle")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("CultureTitle")
|
||||
.HasName("resources_FK2");
|
||||
|
||||
b.HasIndex("Id")
|
||||
.IsUnique()
|
||||
.HasName("id");
|
||||
|
||||
b.ToTable("res_reserve");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
// <auto-generated />
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.TelegramDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlTelegramDbContext))]
|
||||
[Migration("20201006101305_TelegramDbContextMySql")]
|
||||
partial class TelegramDbContextMySql
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.TelegramUser", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("PortalUserId")
|
||||
.HasColumnName("portal_user_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TelegramUserId")
|
||||
.HasColumnName("telegram_user_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("TenantId", "PortalUserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("TelegramUserId")
|
||||
.HasName("tgId");
|
||||
|
||||
b.ToTable("telegram_users");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.TelegramDbContextMySql
|
||||
{
|
||||
public partial class TelegramDbContextMySql : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "telegram_users",
|
||||
columns: table => new
|
||||
{
|
||||
portal_user_id = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
telegram_user_id = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.tenant_id, x.portal_user_id });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "tgId",
|
||||
table: "telegram_users",
|
||||
column: "telegram_user_id");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "telegram_users");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
// <auto-generated />
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.TelegramDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlTelegramDbContext))]
|
||||
partial class TelegramDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.TelegramUser", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("PortalUserId")
|
||||
.HasColumnName("portal_user_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TelegramUserId")
|
||||
.HasColumnName("telegram_user_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("TenantId", "PortalUserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("TelegramUserId")
|
||||
.HasName("tgId");
|
||||
|
||||
b.ToTable("telegram_users");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,636 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.TenantDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlTenantDbContext))]
|
||||
[Migration("20201006101436_TenantDbContextMySql")]
|
||||
partial class TenantDbContextMySql
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbCoreSettings", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Id")
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<byte[]>("Value")
|
||||
.IsRequired()
|
||||
.HasColumnName("value")
|
||||
.HasColumnType("mediumblob");
|
||||
|
||||
b.HasKey("Tenant", "Id")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("core_settings");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Id = "CompanyWhiteLabelSettings",
|
||||
LastModified = new DateTime(2020, 10, 6, 10, 14, 35, 611, DateTimeKind.Utc).AddTicks(4820),
|
||||
Value = new byte[] { 48, 120, 70, 53, 52, 55, 48, 52, 56, 65, 52, 56, 54, 53, 49, 55, 49, 53, 56, 55, 68, 57, 67, 69, 66, 67, 56, 65, 52, 57, 54, 67, 54, 48, 49, 68, 57, 54, 48, 51, 49, 70, 50, 67, 49, 67, 51, 69, 57, 49, 54, 48, 51, 53, 51, 57, 52, 50, 69, 69, 55, 54, 53, 68, 65, 67, 68, 51, 49, 54, 70, 52, 66, 53, 70, 52, 50, 56, 57, 50, 52, 51, 54, 70, 67, 52, 65, 50, 49, 66, 57, 65, 54, 68, 70, 56, 70, 70, 68, 51, 66, 67, 52, 48, 51, 54, 66, 52, 55, 69, 51, 65, 53, 65, 49, 66, 52, 67, 56, 56, 49, 66, 50, 54, 54, 48, 57, 56, 54, 57, 70, 69, 66, 66, 54, 56, 52, 56, 66, 68, 56, 56, 67, 48, 50, 69, 69, 65, 67, 54, 65, 52, 67, 67, 66, 51, 69, 56, 70, 52, 48, 52, 50, 57, 48, 56, 49, 50, 70, 48, 69, 54, 69, 49, 50, 52, 65, 53, 53, 50, 66, 69, 56, 49, 65, 53, 56, 67, 54, 52, 66, 66, 56, 66, 68, 51, 67, 57, 65, 56, 67, 48, 69, 68, 69, 49, 70, 57, 52, 50, 49, 50, 56, 49, 68, 69, 48, 67, 55, 65, 70, 56, 50, 55, 51, 51, 67, 48, 66, 55, 53, 52, 69, 57, 55, 69, 70, 70, 70, 65, 53, 65, 55, 53, 54, 48, 55, 65, 57, 49, 57, 53, 55, 56, 57, 54, 67, 66, 69, 67, 70, 57, 53, 54, 51, 70, 67, 56, 51, 49, 51, 48, 48, 68, 67, 56, 69, 55, 67, 57, 51, 48, 65, 53, 53, 66, 50, 57, 56, 69, 66, 56, 50, 68, 54, 70, 54, 57, 69, 48, 69, 68, 54, 69, 52, 68, 56, 55, 53, 50, 54, 48, 55, 70, 49, 56, 56, 49, 70, 54, 49, 66, 48, 51, 50, 51, 48, 54, 69, 48, 70, 48, 54, 57, 65, 53, 70, 54, 57, 70, 48, 56, 54, 65, 49, 55, 55, 69, 66, 52, 49, 65, 67, 48, 54, 70, 56, 56, 57, 69, 66, 48, 66, 51, 57, 67, 66, 70, 68, 52, 66, 53, 67, 68, 66, 55, 54, 51, 69, 57, 57, 54, 53, 53, 52, 68, 69, 65, 68, 66, 57, 67, 55, 49, 67, 70, 51, 69, 70, 56, 54, 70, 52, 65, 48, 51, 53, 52, 65, 56, 54, 52, 65, 49, 48, 54, 51, 57, 68, 70, 68, 50, 57, 66, 53, 67, 54, 68, 53, 68, 67, 68, 65, 57, 68, 52, 66, 48, 57, 56, 56, 69, 69, 52, 48, 54, 57, 52, 56, 66, 67, 66, 53, 52, 67, 54, 65, 55, 48, 65, 68, 67, 54, 67, 48, 48, 53, 55, 55, 49, 55, 52, 50, 56, 53, 67, 69, 66, 67, 68, 55, 54 }
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Id = "FullTextSearchSettings",
|
||||
LastModified = new DateTime(2020, 10, 6, 10, 14, 35, 611, DateTimeKind.Utc).AddTicks(6072),
|
||||
Value = new byte[] { 48, 120, 48, 56, 55, 56, 67, 70, 48, 53, 57, 57, 66, 53, 49, 55, 67, 65, 65, 50, 68, 51, 68, 65, 69, 68, 57, 68, 48, 54, 52, 67, 51, 69, 68, 67, 69, 69, 65, 70, 52, 51, 49, 70, 51, 53, 65, 54, 70, 54, 52, 50, 68, 67, 65, 68, 65, 48, 52, 56, 49, 55, 69, 51, 53, 49, 51, 50, 50, 55, 66, 66, 66, 49, 68, 69, 54, 69, 50, 66, 65, 66, 69, 66, 57, 69, 49, 48, 55, 55, 66, 50, 67, 70, 51, 49, 56, 67, 52, 56, 57, 56, 49, 52, 53, 52, 53, 69, 56, 55, 55, 53, 48, 49, 70, 54, 51, 51, 70, 66, 66, 69, 57, 52, 48, 50, 50, 67, 70, 67, 68, 68, 48, 50, 53, 66, 53, 51, 57, 53, 57, 55, 51, 65, 70, 53, 49, 48, 57, 52, 51, 52, 48, 56, 66, 66, 53, 54, 57, 54, 50, 69, 69, 51, 53, 68, 65, 51, 53, 70, 50, 70, 56, 51, 55, 52, 67, 70, 53, 70, 68, 49, 50, 54, 57, 53, 51, 53, 57, 52, 52, 57, 68, 55, 67, 69, 70, 66, 67, 50, 67, 55, 66, 68, 49, 49, 50, 65, 69, 53, 56, 55, 53, 50, 49, 55, 57, 65, 65, 50, 65, 53, 57, 69, 53, 69, 49, 55, 56, 48, 49, 69, 53, 56, 48, 67, 67, 67, 54, 48, 70, 65, 69, 67, 56, 69, 66, 68, 68, 51, 68, 54, 49, 50, 67, 52, 56, 56, 54, 54, 54, 54, 68, 57, 54, 68, 54, 67, 70, 48, 54, 48, 54, 48, 53, 69, 54, 52, 67, 57, 48, 65, 49, 70, 65, 65, 56, 48, 67, 48 }
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Id = "SmtpSettings",
|
||||
LastModified = new DateTime(2020, 10, 6, 10, 14, 35, 611, DateTimeKind.Utc).AddTicks(6099),
|
||||
Value = new byte[] { 48, 120, 70, 48, 53, 50, 69, 48, 57, 48, 65, 49, 65, 51, 55, 53, 48, 68, 65, 68, 67, 68, 52, 69, 57, 57, 54, 49, 68, 65, 48, 52, 65, 65, 53, 49, 69, 70, 48, 49, 57, 55, 69, 50, 67, 48, 54, 50, 51, 67, 70, 49, 50, 67, 53, 56, 51, 56, 66, 70, 65, 52, 48, 65, 57, 66, 52, 56, 66, 65, 69, 70, 67, 66, 69, 51, 55, 49, 53, 56, 55, 55, 51, 49, 68, 55, 69, 51, 68, 67, 57, 69, 55, 67, 54, 48, 48, 57, 55, 52, 50, 70, 57, 69, 52, 49, 53, 68, 53, 54, 68, 66, 48, 70, 48, 65, 69, 48, 56, 69, 51, 50, 70, 56, 57, 48, 52, 66, 50, 67, 52, 52, 49, 67, 67, 54, 53, 55, 67, 54, 52, 53, 52, 51, 69, 65, 69, 69, 50, 54, 50, 48, 52, 52, 65, 50, 56, 66, 52, 51, 51, 53, 68, 67, 66, 48, 70, 48, 67, 52, 69, 57, 52, 48, 49, 68, 56, 57, 49, 70, 65, 48, 54, 51, 54, 57, 70, 57, 56, 52, 67, 65, 50, 68, 52, 55, 53, 67, 56, 54, 67, 50, 51, 55, 57, 49, 55, 57, 54, 49, 67, 53, 56, 50, 55, 55, 54, 57, 56, 51, 49, 53, 56, 53, 50, 51, 48, 65, 54, 54, 65, 67, 55, 55, 56, 55, 69, 54, 70, 66, 53, 54, 70, 68, 51, 69, 51, 55, 51, 56, 57, 50, 54, 55, 65, 52, 54, 65 }
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenant", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Alias")
|
||||
.IsRequired()
|
||||
.HasColumnName("alias")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Calls")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("calls")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasDefaultValueSql("true");
|
||||
|
||||
b.Property<DateTime>("CreationDateTime")
|
||||
.HasColumnName("creationdatetime")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int?>("Industry")
|
||||
.HasColumnName("industry")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Language")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("language")
|
||||
.HasColumnType("char(10)")
|
||||
.HasDefaultValueSql("'en-US'")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("MappedDomain")
|
||||
.HasColumnName("mappeddomain")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnName("name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("OwnerId")
|
||||
.IsRequired()
|
||||
.HasColumnName("owner_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("PaymentId")
|
||||
.HasColumnName("payment_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Public")
|
||||
.HasColumnName("public")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("PublicVisibleProducts")
|
||||
.HasColumnName("publicvisibleproducts")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Spam")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("spam")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasDefaultValueSql("true");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.HasColumnName("status")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("StatusChanged")
|
||||
.HasColumnName("statuschanged")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("TimeZone")
|
||||
.HasColumnName("timezone")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("TrustedDomains")
|
||||
.HasColumnName("trusteddomains")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TrustedDomainsEnabled")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("trusteddomainsenabled")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'1'");
|
||||
|
||||
b.Property<int>("Version")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("version")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'2'");
|
||||
|
||||
b.Property<DateTime>("VersionChanged")
|
||||
.HasColumnName("version_changed")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<DateTime?>("Version_Changed")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.HasIndex("MappedDomain")
|
||||
.HasName("mappeddomain");
|
||||
|
||||
b.HasIndex("Version")
|
||||
.HasName("version");
|
||||
|
||||
b.ToTable("tenants_tenants","onlyoffice");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
Alias = "localhost",
|
||||
Calls = false,
|
||||
CreationDateTime = new DateTime(2020, 10, 6, 10, 14, 35, 606, DateTimeKind.Utc).AddTicks(4422),
|
||||
LastModified = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
Name = "Web Office",
|
||||
OwnerId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
Public = false,
|
||||
Spam = false,
|
||||
Status = 0,
|
||||
TrustedDomainsEnabled = 0,
|
||||
Version = 0,
|
||||
VersionChanged = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantForbiden", b =>
|
||||
{
|
||||
b.Property<string>("Address")
|
||||
.HasColumnName("address")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Address")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("tenants_forbiden");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Address = "controlpanel"
|
||||
},
|
||||
new
|
||||
{
|
||||
Address = "localhost"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantPartner", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("AffiliateId")
|
||||
.HasColumnName("affiliate_id")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Campaign")
|
||||
.HasColumnName("campaign")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("PartnerId")
|
||||
.HasColumnName("partner_id")
|
||||
.HasColumnType("varchar(36)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("TenantId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("tenants_partners");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantVersion", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("DefaultVersion")
|
||||
.HasColumnName("default_version")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Url")
|
||||
.IsRequired()
|
||||
.HasColumnName("url")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Version")
|
||||
.IsRequired()
|
||||
.HasColumnName("version")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Visible")
|
||||
.HasColumnName("visible")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("tenants_version");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.TenantIpRestrictions", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Ip")
|
||||
.IsRequired()
|
||||
.HasColumnName("ip")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("Tenant")
|
||||
.HasName("tenant");
|
||||
|
||||
b.ToTable("tenants_iprestrictions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.User", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("ActivationStatus")
|
||||
.HasColumnName("activation_status")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("Birthdate")
|
||||
.HasColumnName("bithdate")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Contacts")
|
||||
.HasColumnName("contacts")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreateOn")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("create_on")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("Culture")
|
||||
.HasColumnName("culture")
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.HasColumnName("email")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("FirstName")
|
||||
.IsRequired()
|
||||
.HasColumnName("firstname")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("LastName")
|
||||
.IsRequired()
|
||||
.HasColumnName("lastname")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Location")
|
||||
.HasColumnName("location")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Notes")
|
||||
.HasColumnName("notes")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Phone")
|
||||
.HasColumnName("phone")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("PhoneActivation")
|
||||
.HasColumnName("phone_activation")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("Removed")
|
||||
.HasColumnName("removed")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool?>("Sex")
|
||||
.HasColumnName("sex")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("Sid")
|
||||
.HasColumnName("sid")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("SsoNameId")
|
||||
.HasColumnName("sso_name_id")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("SsoSessionId")
|
||||
.HasColumnName("sso_session_id")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("status")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'1'");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("TerminatedDate")
|
||||
.HasColumnName("terminateddate")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.HasColumnName("title")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UserName")
|
||||
.IsRequired()
|
||||
.HasColumnName("username")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime?>("WorkFromDate")
|
||||
.HasColumnName("workfromdate")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("Email")
|
||||
.HasName("email");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.HasIndex("Tenant", "UserName")
|
||||
.HasName("username");
|
||||
|
||||
b.ToTable("core_user");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
ActivationStatus = 0,
|
||||
CreateOn = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
Email = "",
|
||||
FirstName = "Administrator",
|
||||
LastModified = new DateTime(2020, 10, 6, 10, 14, 35, 587, DateTimeKind.Utc).AddTicks(7841),
|
||||
LastName = "",
|
||||
PhoneActivation = 0,
|
||||
Removed = false,
|
||||
Status = 1,
|
||||
Tenant = 1,
|
||||
UserName = "administrator",
|
||||
WorkFromDate = new DateTime(2020, 10, 6, 10, 14, 35, 587, DateTimeKind.Utc).AddTicks(6725)
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("userid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("GroupId")
|
||||
.HasColumnName("groupid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("RefType")
|
||||
.HasColumnName("ref_type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<bool>("Removed")
|
||||
.HasColumnName("removed")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.HasKey("Tenant", "UserId", "GroupId", "RefType")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.ToTable("core_usergroup");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b =>
|
||||
{
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("userid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime?>("LastModified")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("PwdHash")
|
||||
.HasColumnName("pwdhash")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("PwdHashSha512")
|
||||
.HasColumnName("pwdhashsha512")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("UserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("PwdHash")
|
||||
.HasName("pwdhash");
|
||||
|
||||
b.HasIndex("Tenant")
|
||||
.HasName("tenant");
|
||||
|
||||
b.ToTable("core_usersecurity");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
LastModified = new DateTime(2020, 10, 6, 10, 14, 35, 616, DateTimeKind.Utc).AddTicks(3267),
|
||||
PwdHash = "vLFfghR5tNV3K9DKhmwArV+SbjWAcgZZzIDTnJ0JgCo=",
|
||||
PwdHashSha512 = "USubvPlB+ogq0Q1trcSupg==",
|
||||
Tenant = 1
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantPartner", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant")
|
||||
.WithOne("Partner")
|
||||
.HasForeignKey("ASC.Core.Common.EF.Model.DbTenantPartner", "TenantId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.User", null)
|
||||
.WithMany("Groups")
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.User", null)
|
||||
.WithOne("UserSecurity")
|
||||
.HasForeignKey("ASC.Core.Common.EF.UserSecurity", "UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,370 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.TenantDbContextMySql
|
||||
{
|
||||
public partial class TenantDbContextMySql : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "core_settings",
|
||||
columns: table => new
|
||||
{
|
||||
tenant = table.Column<int>(nullable: false),
|
||||
id = table.Column<string>(type: "varchar(128)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
value = table.Column<byte[]>(type: "mediumblob", nullable: false),
|
||||
last_modified = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.tenant, x.id });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "core_user",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
tenant = table.Column<int>(nullable: false),
|
||||
username = table.Column<string>(type: "varchar(255)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
firstname = table.Column<string>(type: "varchar(64)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
lastname = table.Column<string>(type: "varchar(64)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
sex = table.Column<bool>(nullable: true),
|
||||
bithdate = table.Column<DateTime>(type: "datetime", nullable: true),
|
||||
status = table.Column<int>(nullable: false, defaultValueSql: "'1'"),
|
||||
activation_status = table.Column<int>(nullable: false),
|
||||
email = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
workfromdate = table.Column<DateTime>(type: "datetime", nullable: true),
|
||||
terminateddate = table.Column<DateTime>(type: "datetime", nullable: true),
|
||||
title = table.Column<string>(type: "varchar(64)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
culture = table.Column<string>(type: "varchar(20)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
contacts = table.Column<string>(type: "varchar(1024)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
phone = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
phone_activation = table.Column<int>(nullable: false),
|
||||
location = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
notes = table.Column<string>(type: "varchar(512)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
sid = table.Column<string>(type: "varchar(512)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
sso_name_id = table.Column<string>(type: "varchar(512)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
sso_session_id = table.Column<string>(type: "varchar(512)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
removed = table.Column<bool>(nullable: false),
|
||||
create_on = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP"),
|
||||
last_modified = table.Column<DateTime>(type: "datetime", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_core_user", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "tenants_forbiden",
|
||||
columns: table => new
|
||||
{
|
||||
address = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => x.address);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "tenants_iprestrictions",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
tenant = table.Column<int>(nullable: false),
|
||||
ip = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_tenants_iprestrictions", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "tenants_version",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
version = table.Column<string>(type: "varchar(64)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
url = table.Column<string>(type: "varchar(64)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
default_version = table.Column<int>(nullable: false),
|
||||
visible = table.Column<bool>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_tenants_version", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "tenants_tenants",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
name = table.Column<string>(type: "varchar(255)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
alias = table.Column<string>(type: "varchar(100)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
mappeddomain = table.Column<string>(type: "varchar(100)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
version = table.Column<int>(nullable: false, defaultValueSql: "'2'"),
|
||||
version_changed = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
language = table.Column<string>(type: "char(10)", nullable: false, defaultValueSql: "'en-US'")
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
timezone = table.Column<string>(type: "varchar(50)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
trusteddomains = table.Column<string>(type: "varchar(1024)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
trusteddomainsenabled = table.Column<int>(nullable: false, defaultValueSql: "'1'"),
|
||||
status = table.Column<int>(nullable: false),
|
||||
statuschanged = table.Column<DateTime>(type: "datetime", nullable: true),
|
||||
creationdatetime = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
owner_id = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
@public = table.Column<bool>(name: "public", nullable: false),
|
||||
publicvisibleproducts = table.Column<string>(type: "varchar(1024)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
payment_id = table.Column<string>(type: "varchar(38)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
industry = table.Column<int>(nullable: true),
|
||||
last_modified = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP"),
|
||||
spam = table.Column<bool>(nullable: false, defaultValueSql: "true"),
|
||||
calls = table.Column<bool>(nullable: false, defaultValueSql: "true")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_tenants_tenants", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "core_usergroup",
|
||||
columns: table => new
|
||||
{
|
||||
tenant = table.Column<int>(nullable: false),
|
||||
userid = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
groupid = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
ref_type = table.Column<int>(nullable: false),
|
||||
removed = table.Column<bool>(nullable: false),
|
||||
last_modified = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.tenant, x.userid, x.groupid, x.ref_type });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "core_usersecurity",
|
||||
columns: table => new
|
||||
{
|
||||
userid = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
tenant = table.Column<int>(nullable: false),
|
||||
pwdhash = table.Column<string>(type: "varchar(512)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
pwdhashsha512 = table.Column<string>(type: "varchar(512)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
LastModified = table.Column<DateTime>(type: "timestamp", nullable: true, defaultValueSql: "CURRENT_TIMESTAMP")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => x.userid);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "tenants_partners",
|
||||
columns: table => new
|
||||
{
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
partner_id = table.Column<string>(type: "varchar(36)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
affiliate_id = table.Column<string>(type: "varchar(50)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
campaign = table.Column<string>(type: "varchar(50)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => x.tenant_id);
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "core_settings",
|
||||
columns: new[] { "tenant", "id", "value" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ -1, "CompanyWhiteLabelSettings", new byte[] { 48, 120, 70, 53, 52, 55, 48, 52, 56, 65, 52, 56, 54, 53, 49, 55, 49, 53, 56, 55, 68, 57, 67, 69, 66, 67, 56, 65, 52, 57, 54, 67, 54, 48, 49, 68, 57, 54, 48, 51, 49, 70, 50, 67, 49, 67, 51, 69, 57, 49, 54, 48, 51, 53, 51, 57, 52, 50, 69, 69, 55, 54, 53, 68, 65, 67, 68, 51, 49, 54, 70, 52, 66, 53, 70, 52, 50, 56, 57, 50, 52, 51, 54, 70, 67, 52, 65, 50, 49, 66, 57, 65, 54, 68, 70, 56, 70, 70, 68, 51, 66, 67, 52, 48, 51, 54, 66, 52, 55, 69, 51, 65, 53, 65, 49, 66, 52, 67, 56, 56, 49, 66, 50, 54, 54, 48, 57, 56, 54, 57, 70, 69, 66, 66, 54, 56, 52, 56, 66, 68, 56, 56, 67, 48, 50, 69, 69, 65, 67, 54, 65, 52, 67, 67, 66, 51, 69, 56, 70, 52, 48, 52, 50, 57, 48, 56, 49, 50, 70, 48, 69, 54, 69, 49, 50, 52, 65, 53, 53, 50, 66, 69, 56, 49, 65, 53, 56, 67, 54, 52, 66, 66, 56, 66, 68, 51, 67, 57, 65, 56, 67, 48, 69, 68, 69, 49, 70, 57, 52, 50, 49, 50, 56, 49, 68, 69, 48, 67, 55, 65, 70, 56, 50, 55, 51, 51, 67, 48, 66, 55, 53, 52, 69, 57, 55, 69, 70, 70, 70, 65, 53, 65, 55, 53, 54, 48, 55, 65, 57, 49, 57, 53, 55, 56, 57, 54, 67, 66, 69, 67, 70, 57, 53, 54, 51, 70, 67, 56, 51, 49, 51, 48, 48, 68, 67, 56, 69, 55, 67, 57, 51, 48, 65, 53, 53, 66, 50, 57, 56, 69, 66, 56, 50, 68, 54, 70, 54, 57, 69, 48, 69, 68, 54, 69, 52, 68, 56, 55, 53, 50, 54, 48, 55, 70, 49, 56, 56, 49, 70, 54, 49, 66, 48, 51, 50, 51, 48, 54, 69, 48, 70, 48, 54, 57, 65, 53, 70, 54, 57, 70, 48, 56, 54, 65, 49, 55, 55, 69, 66, 52, 49, 65, 67, 48, 54, 70, 56, 56, 57, 69, 66, 48, 66, 51, 57, 67, 66, 70, 68, 52, 66, 53, 67, 68, 66, 55, 54, 51, 69, 57, 57, 54, 53, 53, 52, 68, 69, 65, 68, 66, 57, 67, 55, 49, 67, 70, 51, 69, 70, 56, 54, 70, 52, 65, 48, 51, 53, 52, 65, 56, 54, 52, 65, 49, 48, 54, 51, 57, 68, 70, 68, 50, 57, 66, 53, 67, 54, 68, 53, 68, 67, 68, 65, 57, 68, 52, 66, 48, 57, 56, 56, 69, 69, 52, 48, 54, 57, 52, 56, 66, 67, 66, 53, 52, 67, 54, 65, 55, 48, 65, 68, 67, 54, 67, 48, 48, 53, 55, 55, 49, 55, 52, 50, 56, 53, 67, 69, 66, 67, 68, 55, 54 } },
|
||||
{ -1, "FullTextSearchSettings", new byte[] { 48, 120, 48, 56, 55, 56, 67, 70, 48, 53, 57, 57, 66, 53, 49, 55, 67, 65, 65, 50, 68, 51, 68, 65, 69, 68, 57, 68, 48, 54, 52, 67, 51, 69, 68, 67, 69, 69, 65, 70, 52, 51, 49, 70, 51, 53, 65, 54, 70, 54, 52, 50, 68, 67, 65, 68, 65, 48, 52, 56, 49, 55, 69, 51, 53, 49, 51, 50, 50, 55, 66, 66, 66, 49, 68, 69, 54, 69, 50, 66, 65, 66, 69, 66, 57, 69, 49, 48, 55, 55, 66, 50, 67, 70, 51, 49, 56, 67, 52, 56, 57, 56, 49, 52, 53, 52, 53, 69, 56, 55, 55, 53, 48, 49, 70, 54, 51, 51, 70, 66, 66, 69, 57, 52, 48, 50, 50, 67, 70, 67, 68, 68, 48, 50, 53, 66, 53, 51, 57, 53, 57, 55, 51, 65, 70, 53, 49, 48, 57, 52, 51, 52, 48, 56, 66, 66, 53, 54, 57, 54, 50, 69, 69, 51, 53, 68, 65, 51, 53, 70, 50, 70, 56, 51, 55, 52, 67, 70, 53, 70, 68, 49, 50, 54, 57, 53, 51, 53, 57, 52, 52, 57, 68, 55, 67, 69, 70, 66, 67, 50, 67, 55, 66, 68, 49, 49, 50, 65, 69, 53, 56, 55, 53, 50, 49, 55, 57, 65, 65, 50, 65, 53, 57, 69, 53, 69, 49, 55, 56, 48, 49, 69, 53, 56, 48, 67, 67, 67, 54, 48, 70, 65, 69, 67, 56, 69, 66, 68, 68, 51, 68, 54, 49, 50, 67, 52, 56, 56, 54, 54, 54, 54, 68, 57, 54, 68, 54, 67, 70, 48, 54, 48, 54, 48, 53, 69, 54, 52, 67, 57, 48, 65, 49, 70, 65, 65, 56, 48, 67, 48 } },
|
||||
{ -1, "SmtpSettings", new byte[] { 48, 120, 70, 48, 53, 50, 69, 48, 57, 48, 65, 49, 65, 51, 55, 53, 48, 68, 65, 68, 67, 68, 52, 69, 57, 57, 54, 49, 68, 65, 48, 52, 65, 65, 53, 49, 69, 70, 48, 49, 57, 55, 69, 50, 67, 48, 54, 50, 51, 67, 70, 49, 50, 67, 53, 56, 51, 56, 66, 70, 65, 52, 48, 65, 57, 66, 52, 56, 66, 65, 69, 70, 67, 66, 69, 51, 55, 49, 53, 56, 55, 55, 51, 49, 68, 55, 69, 51, 68, 67, 57, 69, 55, 67, 54, 48, 48, 57, 55, 52, 50, 70, 57, 69, 52, 49, 53, 68, 53, 54, 68, 66, 48, 70, 48, 65, 69, 48, 56, 69, 51, 50, 70, 56, 57, 48, 52, 66, 50, 67, 52, 52, 49, 67, 67, 54, 53, 55, 67, 54, 52, 53, 52, 51, 69, 65, 69, 69, 50, 54, 50, 48, 52, 52, 65, 50, 56, 66, 52, 51, 51, 53, 68, 67, 66, 48, 70, 48, 67, 52, 69, 57, 52, 48, 49, 68, 56, 57, 49, 70, 65, 48, 54, 51, 54, 57, 70, 57, 56, 52, 67, 65, 50, 68, 52, 55, 53, 67, 56, 54, 67, 50, 51, 55, 57, 49, 55, 57, 54, 49, 67, 53, 56, 50, 55, 55, 54, 57, 56, 51, 49, 53, 56, 53, 50, 51, 48, 65, 54, 54, 65, 67, 55, 55, 56, 55, 69, 54, 70, 66, 53, 54, 70, 68, 51, 69, 51, 55, 51, 56, 57, 50, 54, 55, 65, 52, 54, 65 } }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "core_user",
|
||||
columns: new[] { "id", "activation_status", "bithdate", "contacts", "culture", "email", "firstname", "last_modified", "lastname", "location", "notes", "phone", "phone_activation", "removed", "sex", "sid", "sso_name_id", "sso_session_id", "status", "tenant", "terminateddate", "title", "username", "workfromdate" },
|
||||
values: new object[] { "66faa6e4-f133-11ea-b126-00ffeec8b4ef", 0, null, null, null, "", "Administrator", new DateTime(2020, 10, 6, 10, 14, 35, 587, DateTimeKind.Utc).AddTicks(7841), "", null, null, null, 0, false, null, null, null, null, 1, 1, null, null, "administrator", new DateTime(2020, 10, 6, 10, 14, 35, 587, DateTimeKind.Utc).AddTicks(6725) });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "tenants_forbiden",
|
||||
column: "address",
|
||||
values: new object[]
|
||||
{
|
||||
"controlpanel",
|
||||
"localhost"
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "tenants_tenants",
|
||||
columns: new[] { "id", "alias", "creationdatetime", "industry", "mappeddomain", "name", "owner_id", "payment_id", "public", "publicvisibleproducts", "status", "statuschanged", "timezone", "trusteddomains", "version_changed" },
|
||||
values: new object[] { 1, "localhost", new DateTime(2020, 10, 6, 10, 14, 35, 606, DateTimeKind.Utc).AddTicks(4422), null, null, "Web Office", "66faa6e4-f133-11ea-b126-00ffeec8b4ef", null, false, null, 0, null, null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "core_usersecurity",
|
||||
columns: new[] { "userid", "pwdhash", "pwdhashsha512", "tenant" },
|
||||
values: new object[] { "66faa6e4-f133-11ea-b126-00ffeec8b4ef", "vLFfghR5tNV3K9DKhmwArV+SbjWAcgZZzIDTnJ0JgCo=", "USubvPlB+ogq0Q1trcSupg==", 1 });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "email",
|
||||
table: "core_user",
|
||||
column: "email");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "last_modified",
|
||||
table: "core_user",
|
||||
column: "last_modified");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "username",
|
||||
table: "core_user",
|
||||
columns: new[] { "tenant", "username" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "last_modified",
|
||||
table: "core_usergroup",
|
||||
column: "last_modified");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_core_usergroup_userid",
|
||||
table: "core_usergroup",
|
||||
column: "userid");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "pwdhash",
|
||||
table: "core_usersecurity",
|
||||
column: "pwdhash");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "tenant",
|
||||
table: "core_usersecurity",
|
||||
column: "tenant");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "tenant",
|
||||
table: "tenants_iprestrictions",
|
||||
column: "tenant");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "last_modified",
|
||||
table: "tenants_tenants",
|
||||
column: "last_modified");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "mappeddomain",
|
||||
table: "tenants_tenants",
|
||||
column: "mappeddomain");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "version",
|
||||
table: "tenants_tenants",
|
||||
column: "version");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "core_settings");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "core_usergroup");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "core_usersecurity");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "tenants_forbiden");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "tenants_iprestrictions");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "tenants_partners");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "tenants_version");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "core_user");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "tenants_tenants");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,634 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.TenantDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlTenantDbContext))]
|
||||
partial class TenantDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbCoreSettings", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Id")
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<byte[]>("Value")
|
||||
.IsRequired()
|
||||
.HasColumnName("value")
|
||||
.HasColumnType("mediumblob");
|
||||
|
||||
b.HasKey("Tenant", "Id")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("core_settings");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Id = "CompanyWhiteLabelSettings",
|
||||
LastModified = new DateTime(2020, 10, 6, 10, 14, 35, 611, DateTimeKind.Utc).AddTicks(4820),
|
||||
Value = new byte[] { 48, 120, 70, 53, 52, 55, 48, 52, 56, 65, 52, 56, 54, 53, 49, 55, 49, 53, 56, 55, 68, 57, 67, 69, 66, 67, 56, 65, 52, 57, 54, 67, 54, 48, 49, 68, 57, 54, 48, 51, 49, 70, 50, 67, 49, 67, 51, 69, 57, 49, 54, 48, 51, 53, 51, 57, 52, 50, 69, 69, 55, 54, 53, 68, 65, 67, 68, 51, 49, 54, 70, 52, 66, 53, 70, 52, 50, 56, 57, 50, 52, 51, 54, 70, 67, 52, 65, 50, 49, 66, 57, 65, 54, 68, 70, 56, 70, 70, 68, 51, 66, 67, 52, 48, 51, 54, 66, 52, 55, 69, 51, 65, 53, 65, 49, 66, 52, 67, 56, 56, 49, 66, 50, 54, 54, 48, 57, 56, 54, 57, 70, 69, 66, 66, 54, 56, 52, 56, 66, 68, 56, 56, 67, 48, 50, 69, 69, 65, 67, 54, 65, 52, 67, 67, 66, 51, 69, 56, 70, 52, 48, 52, 50, 57, 48, 56, 49, 50, 70, 48, 69, 54, 69, 49, 50, 52, 65, 53, 53, 50, 66, 69, 56, 49, 65, 53, 56, 67, 54, 52, 66, 66, 56, 66, 68, 51, 67, 57, 65, 56, 67, 48, 69, 68, 69, 49, 70, 57, 52, 50, 49, 50, 56, 49, 68, 69, 48, 67, 55, 65, 70, 56, 50, 55, 51, 51, 67, 48, 66, 55, 53, 52, 69, 57, 55, 69, 70, 70, 70, 65, 53, 65, 55, 53, 54, 48, 55, 65, 57, 49, 57, 53, 55, 56, 57, 54, 67, 66, 69, 67, 70, 57, 53, 54, 51, 70, 67, 56, 51, 49, 51, 48, 48, 68, 67, 56, 69, 55, 67, 57, 51, 48, 65, 53, 53, 66, 50, 57, 56, 69, 66, 56, 50, 68, 54, 70, 54, 57, 69, 48, 69, 68, 54, 69, 52, 68, 56, 55, 53, 50, 54, 48, 55, 70, 49, 56, 56, 49, 70, 54, 49, 66, 48, 51, 50, 51, 48, 54, 69, 48, 70, 48, 54, 57, 65, 53, 70, 54, 57, 70, 48, 56, 54, 65, 49, 55, 55, 69, 66, 52, 49, 65, 67, 48, 54, 70, 56, 56, 57, 69, 66, 48, 66, 51, 57, 67, 66, 70, 68, 52, 66, 53, 67, 68, 66, 55, 54, 51, 69, 57, 57, 54, 53, 53, 52, 68, 69, 65, 68, 66, 57, 67, 55, 49, 67, 70, 51, 69, 70, 56, 54, 70, 52, 65, 48, 51, 53, 52, 65, 56, 54, 52, 65, 49, 48, 54, 51, 57, 68, 70, 68, 50, 57, 66, 53, 67, 54, 68, 53, 68, 67, 68, 65, 57, 68, 52, 66, 48, 57, 56, 56, 69, 69, 52, 48, 54, 57, 52, 56, 66, 67, 66, 53, 52, 67, 54, 65, 55, 48, 65, 68, 67, 54, 67, 48, 48, 53, 55, 55, 49, 55, 52, 50, 56, 53, 67, 69, 66, 67, 68, 55, 54 }
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Id = "FullTextSearchSettings",
|
||||
LastModified = new DateTime(2020, 10, 6, 10, 14, 35, 611, DateTimeKind.Utc).AddTicks(6072),
|
||||
Value = new byte[] { 48, 120, 48, 56, 55, 56, 67, 70, 48, 53, 57, 57, 66, 53, 49, 55, 67, 65, 65, 50, 68, 51, 68, 65, 69, 68, 57, 68, 48, 54, 52, 67, 51, 69, 68, 67, 69, 69, 65, 70, 52, 51, 49, 70, 51, 53, 65, 54, 70, 54, 52, 50, 68, 67, 65, 68, 65, 48, 52, 56, 49, 55, 69, 51, 53, 49, 51, 50, 50, 55, 66, 66, 66, 49, 68, 69, 54, 69, 50, 66, 65, 66, 69, 66, 57, 69, 49, 48, 55, 55, 66, 50, 67, 70, 51, 49, 56, 67, 52, 56, 57, 56, 49, 52, 53, 52, 53, 69, 56, 55, 55, 53, 48, 49, 70, 54, 51, 51, 70, 66, 66, 69, 57, 52, 48, 50, 50, 67, 70, 67, 68, 68, 48, 50, 53, 66, 53, 51, 57, 53, 57, 55, 51, 65, 70, 53, 49, 48, 57, 52, 51, 52, 48, 56, 66, 66, 53, 54, 57, 54, 50, 69, 69, 51, 53, 68, 65, 51, 53, 70, 50, 70, 56, 51, 55, 52, 67, 70, 53, 70, 68, 49, 50, 54, 57, 53, 51, 53, 57, 52, 52, 57, 68, 55, 67, 69, 70, 66, 67, 50, 67, 55, 66, 68, 49, 49, 50, 65, 69, 53, 56, 55, 53, 50, 49, 55, 57, 65, 65, 50, 65, 53, 57, 69, 53, 69, 49, 55, 56, 48, 49, 69, 53, 56, 48, 67, 67, 67, 54, 48, 70, 65, 69, 67, 56, 69, 66, 68, 68, 51, 68, 54, 49, 50, 67, 52, 56, 56, 54, 54, 54, 54, 68, 57, 54, 68, 54, 67, 70, 48, 54, 48, 54, 48, 53, 69, 54, 52, 67, 57, 48, 65, 49, 70, 65, 65, 56, 48, 67, 48 }
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Id = "SmtpSettings",
|
||||
LastModified = new DateTime(2020, 10, 6, 10, 14, 35, 611, DateTimeKind.Utc).AddTicks(6099),
|
||||
Value = new byte[] { 48, 120, 70, 48, 53, 50, 69, 48, 57, 48, 65, 49, 65, 51, 55, 53, 48, 68, 65, 68, 67, 68, 52, 69, 57, 57, 54, 49, 68, 65, 48, 52, 65, 65, 53, 49, 69, 70, 48, 49, 57, 55, 69, 50, 67, 48, 54, 50, 51, 67, 70, 49, 50, 67, 53, 56, 51, 56, 66, 70, 65, 52, 48, 65, 57, 66, 52, 56, 66, 65, 69, 70, 67, 66, 69, 51, 55, 49, 53, 56, 55, 55, 51, 49, 68, 55, 69, 51, 68, 67, 57, 69, 55, 67, 54, 48, 48, 57, 55, 52, 50, 70, 57, 69, 52, 49, 53, 68, 53, 54, 68, 66, 48, 70, 48, 65, 69, 48, 56, 69, 51, 50, 70, 56, 57, 48, 52, 66, 50, 67, 52, 52, 49, 67, 67, 54, 53, 55, 67, 54, 52, 53, 52, 51, 69, 65, 69, 69, 50, 54, 50, 48, 52, 52, 65, 50, 56, 66, 52, 51, 51, 53, 68, 67, 66, 48, 70, 48, 67, 52, 69, 57, 52, 48, 49, 68, 56, 57, 49, 70, 65, 48, 54, 51, 54, 57, 70, 57, 56, 52, 67, 65, 50, 68, 52, 55, 53, 67, 56, 54, 67, 50, 51, 55, 57, 49, 55, 57, 54, 49, 67, 53, 56, 50, 55, 55, 54, 57, 56, 51, 49, 53, 56, 53, 50, 51, 48, 65, 54, 54, 65, 67, 55, 55, 56, 55, 69, 54, 70, 66, 53, 54, 70, 68, 51, 69, 51, 55, 51, 56, 57, 50, 54, 55, 65, 52, 54, 65 }
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenant", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Alias")
|
||||
.IsRequired()
|
||||
.HasColumnName("alias")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Calls")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("calls")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasDefaultValueSql("true");
|
||||
|
||||
b.Property<DateTime>("CreationDateTime")
|
||||
.HasColumnName("creationdatetime")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int?>("Industry")
|
||||
.HasColumnName("industry")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Language")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("language")
|
||||
.HasColumnType("char(10)")
|
||||
.HasDefaultValueSql("'en-US'")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("MappedDomain")
|
||||
.HasColumnName("mappeddomain")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnName("name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("OwnerId")
|
||||
.IsRequired()
|
||||
.HasColumnName("owner_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("PaymentId")
|
||||
.HasColumnName("payment_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Public")
|
||||
.HasColumnName("public")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("PublicVisibleProducts")
|
||||
.HasColumnName("publicvisibleproducts")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Spam")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("spam")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasDefaultValueSql("true");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.HasColumnName("status")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("StatusChanged")
|
||||
.HasColumnName("statuschanged")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("TimeZone")
|
||||
.HasColumnName("timezone")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("TrustedDomains")
|
||||
.HasColumnName("trusteddomains")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TrustedDomainsEnabled")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("trusteddomainsenabled")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'1'");
|
||||
|
||||
b.Property<int>("Version")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("version")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'2'");
|
||||
|
||||
b.Property<DateTime>("VersionChanged")
|
||||
.HasColumnName("version_changed")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<DateTime?>("Version_Changed")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.HasIndex("MappedDomain")
|
||||
.HasName("mappeddomain");
|
||||
|
||||
b.HasIndex("Version")
|
||||
.HasName("version");
|
||||
|
||||
b.ToTable("tenants_tenants","onlyoffice");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
Alias = "localhost",
|
||||
Calls = false,
|
||||
CreationDateTime = new DateTime(2020, 10, 6, 10, 14, 35, 606, DateTimeKind.Utc).AddTicks(4422),
|
||||
LastModified = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
Name = "Web Office",
|
||||
OwnerId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
Public = false,
|
||||
Spam = false,
|
||||
Status = 0,
|
||||
TrustedDomainsEnabled = 0,
|
||||
Version = 0,
|
||||
VersionChanged = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantForbiden", b =>
|
||||
{
|
||||
b.Property<string>("Address")
|
||||
.HasColumnName("address")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Address")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("tenants_forbiden");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Address = "controlpanel"
|
||||
},
|
||||
new
|
||||
{
|
||||
Address = "localhost"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantPartner", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("AffiliateId")
|
||||
.HasColumnName("affiliate_id")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Campaign")
|
||||
.HasColumnName("campaign")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("PartnerId")
|
||||
.HasColumnName("partner_id")
|
||||
.HasColumnType("varchar(36)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("TenantId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("tenants_partners");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantVersion", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("DefaultVersion")
|
||||
.HasColumnName("default_version")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Url")
|
||||
.IsRequired()
|
||||
.HasColumnName("url")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Version")
|
||||
.IsRequired()
|
||||
.HasColumnName("version")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Visible")
|
||||
.HasColumnName("visible")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("tenants_version");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.TenantIpRestrictions", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Ip")
|
||||
.IsRequired()
|
||||
.HasColumnName("ip")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("Tenant")
|
||||
.HasName("tenant");
|
||||
|
||||
b.ToTable("tenants_iprestrictions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.User", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("ActivationStatus")
|
||||
.HasColumnName("activation_status")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("Birthdate")
|
||||
.HasColumnName("bithdate")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Contacts")
|
||||
.HasColumnName("contacts")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreateOn")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("create_on")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("Culture")
|
||||
.HasColumnName("culture")
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.HasColumnName("email")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("FirstName")
|
||||
.IsRequired()
|
||||
.HasColumnName("firstname")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("LastName")
|
||||
.IsRequired()
|
||||
.HasColumnName("lastname")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Location")
|
||||
.HasColumnName("location")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Notes")
|
||||
.HasColumnName("notes")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Phone")
|
||||
.HasColumnName("phone")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("PhoneActivation")
|
||||
.HasColumnName("phone_activation")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("Removed")
|
||||
.HasColumnName("removed")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool?>("Sex")
|
||||
.HasColumnName("sex")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("Sid")
|
||||
.HasColumnName("sid")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("SsoNameId")
|
||||
.HasColumnName("sso_name_id")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("SsoSessionId")
|
||||
.HasColumnName("sso_session_id")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("status")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'1'");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("TerminatedDate")
|
||||
.HasColumnName("terminateddate")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.HasColumnName("title")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UserName")
|
||||
.IsRequired()
|
||||
.HasColumnName("username")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime?>("WorkFromDate")
|
||||
.HasColumnName("workfromdate")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("Email")
|
||||
.HasName("email");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.HasIndex("Tenant", "UserName")
|
||||
.HasName("username");
|
||||
|
||||
b.ToTable("core_user");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
ActivationStatus = 0,
|
||||
CreateOn = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
Email = "",
|
||||
FirstName = "Administrator",
|
||||
LastModified = new DateTime(2020, 10, 6, 10, 14, 35, 587, DateTimeKind.Utc).AddTicks(7841),
|
||||
LastName = "",
|
||||
PhoneActivation = 0,
|
||||
Removed = false,
|
||||
Status = 1,
|
||||
Tenant = 1,
|
||||
UserName = "administrator",
|
||||
WorkFromDate = new DateTime(2020, 10, 6, 10, 14, 35, 587, DateTimeKind.Utc).AddTicks(6725)
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("userid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("GroupId")
|
||||
.HasColumnName("groupid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("RefType")
|
||||
.HasColumnName("ref_type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<bool>("Removed")
|
||||
.HasColumnName("removed")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.HasKey("Tenant", "UserId", "GroupId", "RefType")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.ToTable("core_usergroup");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b =>
|
||||
{
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("userid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime?>("LastModified")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("PwdHash")
|
||||
.HasColumnName("pwdhash")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("PwdHashSha512")
|
||||
.HasColumnName("pwdhashsha512")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("UserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("PwdHash")
|
||||
.HasName("pwdhash");
|
||||
|
||||
b.HasIndex("Tenant")
|
||||
.HasName("tenant");
|
||||
|
||||
b.ToTable("core_usersecurity");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
LastModified = new DateTime(2020, 10, 6, 10, 14, 35, 616, DateTimeKind.Utc).AddTicks(3267),
|
||||
PwdHash = "vLFfghR5tNV3K9DKhmwArV+SbjWAcgZZzIDTnJ0JgCo=",
|
||||
PwdHashSha512 = "USubvPlB+ogq0Q1trcSupg==",
|
||||
Tenant = 1
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantPartner", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant")
|
||||
.WithOne("Partner")
|
||||
.HasForeignKey("ASC.Core.Common.EF.Model.DbTenantPartner", "TenantId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.User", null)
|
||||
.WithMany("Groups")
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.User", null)
|
||||
.WithOne("UserSecurity")
|
||||
.HasForeignKey("ASC.Core.Common.EF.UserSecurity", "UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
751
common/ASC.Core.Common/Migrations/MySql/UserDbContextMySql/20201006101622_UserDbContextMySql.Designer.cs
generated
Normal file
751
common/ASC.Core.Common/Migrations/MySql/UserDbContextMySql/20201006101622_UserDbContextMySql.Designer.cs
generated
Normal file
@ -0,0 +1,751 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.UserDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlUserDbContext))]
|
||||
[Migration("20201006101622_UserDbContextMySql")]
|
||||
partial class UserDbContextMySql
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.DbGroup", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("CategoryId")
|
||||
.HasColumnName("categoryid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnName("name")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ParentId")
|
||||
.HasColumnName("parentid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Removed")
|
||||
.HasColumnName("removed")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("Sid")
|
||||
.HasColumnName("sid")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.HasIndex("Tenant", "ParentId")
|
||||
.HasName("parentid");
|
||||
|
||||
b.ToTable("core_group");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.DbSubscriptionMethod", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Source")
|
||||
.HasColumnName("source")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Action")
|
||||
.HasColumnName("action")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Recipient")
|
||||
.HasColumnName("recipient")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Sender")
|
||||
.IsRequired()
|
||||
.HasColumnName("sender")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Tenant", "Source", "Action", "Recipient")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("core_subscriptionmethod");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "asc.web.studio",
|
||||
Action = "send_whats_new",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6504977c-75af-4691-9099-084d3ddeea04",
|
||||
Action = "new feed",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6a598c74-91ae-437d-a5f4-ad339bd11bb2",
|
||||
Action = "new post",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "853b6eb9-73ee-438d-9b09-8ffeedf36234",
|
||||
Action = "new topic in forum",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "9d51954f-db9b-4aed-94e3-ed70b914e101",
|
||||
Action = "new photo uploaded",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "28b10049-dd20-4f54-b986-873bc14ccfc7",
|
||||
Action = "new bookmark created",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "742cf945-cbbc-4a57-82d6-1600a12cf8ca",
|
||||
Action = "new wiki page",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "37620ae5-c40b-45ce-855a-39dd7d76a1fa",
|
||||
Action = "BirthdayReminder",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0",
|
||||
Action = "sharedocument",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0",
|
||||
Action = "sharefolder",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0",
|
||||
Action = "updatedocument",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "invitetoproject",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "milestonedeadline",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "newcommentformessage",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "newcommentformilestone",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "newcommentfortask",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "projectcreaterequest",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "projecteditrequest",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "removefromproject",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "responsibleforproject",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "responsiblefortask",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "taskclosed",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "40650da3-f7c1-424c-8c89-b9c115472e08",
|
||||
Action = "calendar_sharing",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "40650da3-f7c1-424c-8c89-b9c115472e08",
|
||||
Action = "event_alert",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "asc.web.studio",
|
||||
Action = "admin_notify",
|
||||
Recipient = "cd84e66b-b803-40fc-99f9-b2969a54a1de",
|
||||
Sender = "email.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "SetAccess",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "ResponsibleForTask",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "AddRelationshipEvent",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "ExportCompleted",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "CreateNewContact",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Sender = "email.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "ResponsibleForOpportunity",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "asc.web.studio",
|
||||
Action = "periodic_notify",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Subscription", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Source")
|
||||
.HasColumnName("source")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Action")
|
||||
.HasColumnName("action")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Recipient")
|
||||
.HasColumnName("recipient")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Object")
|
||||
.HasColumnName("object")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Unsubscribed")
|
||||
.HasColumnName("unsubscribed")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.HasKey("Tenant", "Source", "Action", "Recipient", "Object")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("core_subscription");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "asc.web.studio",
|
||||
Action = "send_whats_new",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6504977c-75af-4691-9099-084d3ddeea04",
|
||||
Action = "new feed",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6a598c74-91ae-437d-a5f4-ad339bd11bb2",
|
||||
Action = "new post",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "853b6eb9-73ee-438d-9b09-8ffeedf36234",
|
||||
Action = "new topic in forum",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "9d51954f-db9b-4aed-94e3-ed70b914e10",
|
||||
Action = "new photo uploaded",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "28b10049-dd20-4f54-b986-873bc14ccfc7",
|
||||
Action = "new bookmark created",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "742cf945-cbbc-4a57-82d6-1600a12cf8ca",
|
||||
Action = "new wiki page",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "37620ae5-c40b-45ce-855a-39dd7d76a1fa",
|
||||
Action = "BirthdayReminderd",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0",
|
||||
Action = "sharedocument",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0",
|
||||
Action = "sharefolder",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "40650da3-f7c1-424c-8c89-b9c115472e08",
|
||||
Action = "calendar_sharing",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "40650da3-f7c1-424c-8c89-b9c115472e08",
|
||||
Action = "event_alert",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "asc.web.studio",
|
||||
Action = "admin_notify",
|
||||
Recipient = "cd84e66b-b803-40fc-99f9-b2969a54a1de",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "SetAccess",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "ResponsibleForTask",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "AddRelationshipEvent",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "ExportCompleted",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "CreateNewContact",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "ResponsibleForOpportunity",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "asc.web.studio",
|
||||
Action = "periodic_notify",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("userid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("GroupId")
|
||||
.HasColumnName("groupid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("RefType")
|
||||
.HasColumnName("ref_type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<bool>("Removed")
|
||||
.HasColumnName("removed")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.HasKey("Tenant", "UserId", "GroupId", "RefType")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.ToTable("core_usergroup");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Tenant = 1,
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
GroupId = "cd84e66b-b803-40fc-99f9-b2969a54a1de",
|
||||
RefType = 0,
|
||||
LastModified = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
Removed = false
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserPhoto", b =>
|
||||
{
|
||||
b.Property<string>("UserId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("userid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<byte[]>("Photo")
|
||||
.IsRequired()
|
||||
.HasColumnName("photo")
|
||||
.HasColumnType("mediumblob");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("UserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("Tenant")
|
||||
.HasName("tenant");
|
||||
|
||||
b.ToTable("core_userphoto");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b =>
|
||||
{
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("userid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime?>("LastModified")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("PwdHash")
|
||||
.HasColumnName("pwdhash")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("PwdHashSha512")
|
||||
.HasColumnName("pwdhashsha512")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("UserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("PwdHash")
|
||||
.HasName("pwdhash");
|
||||
|
||||
b.HasIndex("Tenant")
|
||||
.HasName("tenant");
|
||||
|
||||
b.ToTable("core_usersecurity");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
LastModified = new DateTime(2020, 10, 6, 10, 16, 22, 182, DateTimeKind.Utc).AddTicks(12),
|
||||
PwdHash = "vLFfghR5tNV3K9DKhmwArV+SbjWAcgZZzIDTnJ0JgCo=",
|
||||
PwdHashSha512 = "USubvPlB+ogq0Q1trcSupg==",
|
||||
Tenant = 1
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.User", null)
|
||||
.WithMany("Groups")
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.User", null)
|
||||
.WithOne("UserSecurity")
|
||||
.HasForeignKey("ASC.Core.Common.EF.UserSecurity", "UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,215 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.UserDbContextMySql
|
||||
{
|
||||
public partial class UserDbContextMySql : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "core_group",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
tenant = table.Column<int>(nullable: false),
|
||||
name = table.Column<string>(type: "varchar(128)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
categoryid = table.Column<string>(type: "varchar(38)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
parentid = table.Column<string>(type: "varchar(38)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
sid = table.Column<string>(type: "varchar(512)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
removed = table.Column<bool>(nullable: false),
|
||||
last_modified = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_core_group", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "core_subscription",
|
||||
columns: table => new
|
||||
{
|
||||
tenant = table.Column<int>(nullable: false),
|
||||
source = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
action = table.Column<string>(type: "varchar(128)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
recipient = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
@object = table.Column<string>(name: "object", type: "varchar(128)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
unsubscribed = table.Column<bool>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.tenant, x.source, x.action, x.recipient, x.@object });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "core_subscriptionmethod",
|
||||
columns: table => new
|
||||
{
|
||||
tenant = table.Column<int>(nullable: false),
|
||||
source = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
action = table.Column<string>(type: "varchar(128)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
recipient = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
sender = table.Column<string>(type: "varchar(1024)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.tenant, x.source, x.action, x.recipient });
|
||||
});
|
||||
|
||||
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "core_userphoto",
|
||||
columns: table => new
|
||||
{
|
||||
userid = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
tenant = table.Column<int>(nullable: false),
|
||||
photo = table.Column<byte[]>(type: "mediumblob", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => x.userid);
|
||||
});
|
||||
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "core_subscription",
|
||||
columns: new[] { "tenant", "source", "action", "recipient", "object", "unsubscribed" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ -1, "asc.web.studio", "send_whats_new", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "", false },
|
||||
{ -1, "6fe286a4-479e-4c25-a8d9-0156e332b0c0", "sharedocument", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "", false },
|
||||
{ -1, "6a598c74-91ae-437d-a5f4-ad339bd11bb2", "new post", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "", false },
|
||||
{ -1, "853b6eb9-73ee-438d-9b09-8ffeedf36234", "new topic in forum", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "", false },
|
||||
{ -1, "9d51954f-db9b-4aed-94e3-ed70b914e10", "new photo uploaded", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "", false },
|
||||
{ -1, "28b10049-dd20-4f54-b986-873bc14ccfc7", "new bookmark created", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "", false },
|
||||
{ -1, "742cf945-cbbc-4a57-82d6-1600a12cf8ca", "new wiki page", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "", false },
|
||||
{ -1, "37620ae5-c40b-45ce-855a-39dd7d76a1fa", "BirthdayReminderd", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "", false },
|
||||
{ -1, "6504977c-75af-4691-9099-084d3ddeea04", "new feed", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "", false },
|
||||
{ -1, "13ff36fb-0272-4887-b416-74f52b0d0b02", "SetAccess", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "", false },
|
||||
{ -1, "40650da3-f7c1-424c-8c89-b9c115472e08", "calendar_sharing", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "", false },
|
||||
{ -1, "40650da3-f7c1-424c-8c89-b9c115472e08", "event_alert", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "", false },
|
||||
{ -1, "asc.web.studio", "admin_notify", "cd84e66b-b803-40fc-99f9-b2969a54a1de", "", false },
|
||||
{ -1, "13ff36fb-0272-4887-b416-74f52b0d0b02", "ResponsibleForTask", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "", false },
|
||||
{ -1, "13ff36fb-0272-4887-b416-74f52b0d0b02", "AddRelationshipEvent", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "", false },
|
||||
{ -1, "13ff36fb-0272-4887-b416-74f52b0d0b02", "ExportCompleted", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "", false },
|
||||
{ -1, "13ff36fb-0272-4887-b416-74f52b0d0b02", "CreateNewContact", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "", false },
|
||||
{ -1, "13ff36fb-0272-4887-b416-74f52b0d0b02", "ResponsibleForOpportunity", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "", false },
|
||||
{ -1, "asc.web.studio", "periodic_notify", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "", false },
|
||||
{ -1, "6fe286a4-479e-4c25-a8d9-0156e332b0c0", "sharefolder", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "", false }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "core_subscriptionmethod",
|
||||
columns: new[] { "tenant", "source", "action", "recipient", "sender" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ -1, "13ff36fb-0272-4887-b416-74f52b0d0b02", "AddRelationshipEvent", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "email.sender|messanger.sender" },
|
||||
{ -1, "asc.web.studio", "periodic_notify", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender" },
|
||||
{ -1, "13ff36fb-0272-4887-b416-74f52b0d0b02", "ResponsibleForOpportunity", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "email.sender|messanger.sender" },
|
||||
{ -1, "13ff36fb-0272-4887-b416-74f52b0d0b02", "CreateNewContact", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "email.sender" },
|
||||
{ -1, "13ff36fb-0272-4887-b416-74f52b0d0b02", "ExportCompleted", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "email.sender|messanger.sender" },
|
||||
{ -1, "13ff36fb-0272-4887-b416-74f52b0d0b02", "ResponsibleForTask", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "email.sender|messanger.sender" },
|
||||
{ -1, "6fe286a4-479e-4c25-a8d9-0156e332b0c0", "updatedocument", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "asc.web.studio", "admin_notify", "cd84e66b-b803-40fc-99f9-b2969a54a1de", "email.sender" },
|
||||
{ -1, "asc.web.studio", "send_whats_new", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender" },
|
||||
{ -1, "6504977c-75af-4691-9099-084d3ddeea04", "new feed", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "6a598c74-91ae-437d-a5f4-ad339bd11bb2", "new post", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "853b6eb9-73ee-438d-9b09-8ffeedf36234", "new topic in forum", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "9d51954f-db9b-4aed-94e3-ed70b914e101", "new photo uploaded", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "28b10049-dd20-4f54-b986-873bc14ccfc7", "new bookmark created", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "742cf945-cbbc-4a57-82d6-1600a12cf8ca", "new wiki page", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "37620ae5-c40b-45ce-855a-39dd7d76a1fa", "BirthdayReminder", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "email.sender|messanger.sender" },
|
||||
{ -1, "6fe286a4-479e-4c25-a8d9-0156e332b0c0", "sharedocument", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "6fe286a4-479e-4c25-a8d9-0156e332b0c0", "sharefolder", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "6045b68c-2c2e-42db-9e53-c272e814c4ad", "invitetoproject", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "6045b68c-2c2e-42db-9e53-c272e814c4ad", "milestonedeadline", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "6045b68c-2c2e-42db-9e53-c272e814c4ad", "newcommentformessage", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "6045b68c-2c2e-42db-9e53-c272e814c4ad", "newcommentformilestone", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "6045b68c-2c2e-42db-9e53-c272e814c4ad", "newcommentfortask", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "6045b68c-2c2e-42db-9e53-c272e814c4ad", "projectcreaterequest", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "6045b68c-2c2e-42db-9e53-c272e814c4ad", "projecteditrequest", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "6045b68c-2c2e-42db-9e53-c272e814c4ad", "removefromproject", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "6045b68c-2c2e-42db-9e53-c272e814c4ad", "responsibleforproject", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "6045b68c-2c2e-42db-9e53-c272e814c4ad", "responsiblefortask", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "6045b68c-2c2e-42db-9e53-c272e814c4ad", "taskclosed", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "40650da3-f7c1-424c-8c89-b9c115472e08", "calendar_sharing", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "40650da3-f7c1-424c-8c89-b9c115472e08", "event_alert", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "email.sender|messanger.sender" },
|
||||
{ -1, "13ff36fb-0272-4887-b416-74f52b0d0b02", "SetAccess", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "email.sender|messanger.sender" }
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "last_modified",
|
||||
table: "core_group",
|
||||
column: "last_modified");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "parentid",
|
||||
table: "core_group",
|
||||
columns: new[] { "tenant", "parentid" });
|
||||
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "tenant",
|
||||
table: "core_userphoto",
|
||||
column: "tenant");
|
||||
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "core_acl");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "core_group");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "core_subscription");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "core_subscriptionmethod");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "core_usergroup");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "core_userphoto");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "core_usersecurity");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "core_user");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,751 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.UserDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlUserDbContext))]
|
||||
partial class UserDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.DbGroup", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("CategoryId")
|
||||
.HasColumnName("categoryid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnName("name")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ParentId")
|
||||
.HasColumnName("parentid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Removed")
|
||||
.HasColumnName("removed")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("Sid")
|
||||
.HasColumnName("sid")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.HasIndex("Tenant", "ParentId")
|
||||
.HasName("parentid");
|
||||
|
||||
b.ToTable("core_group");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.DbSubscriptionMethod", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Source")
|
||||
.HasColumnName("source")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Action")
|
||||
.HasColumnName("action")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Recipient")
|
||||
.HasColumnName("recipient")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Sender")
|
||||
.IsRequired()
|
||||
.HasColumnName("sender")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Tenant", "Source", "Action", "Recipient")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("core_subscriptionmethod");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "asc.web.studio",
|
||||
Action = "send_whats_new",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6504977c-75af-4691-9099-084d3ddeea04",
|
||||
Action = "new feed",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6a598c74-91ae-437d-a5f4-ad339bd11bb2",
|
||||
Action = "new post",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "853b6eb9-73ee-438d-9b09-8ffeedf36234",
|
||||
Action = "new topic in forum",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "9d51954f-db9b-4aed-94e3-ed70b914e101",
|
||||
Action = "new photo uploaded",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "28b10049-dd20-4f54-b986-873bc14ccfc7",
|
||||
Action = "new bookmark created",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "742cf945-cbbc-4a57-82d6-1600a12cf8ca",
|
||||
Action = "new wiki page",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "37620ae5-c40b-45ce-855a-39dd7d76a1fa",
|
||||
Action = "BirthdayReminder",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0",
|
||||
Action = "sharedocument",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0",
|
||||
Action = "sharefolder",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0",
|
||||
Action = "updatedocument",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "invitetoproject",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "milestonedeadline",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "newcommentformessage",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "newcommentformilestone",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "newcommentfortask",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "projectcreaterequest",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "projecteditrequest",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "removefromproject",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "responsibleforproject",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "responsiblefortask",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad",
|
||||
Action = "taskclosed",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "40650da3-f7c1-424c-8c89-b9c115472e08",
|
||||
Action = "calendar_sharing",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "40650da3-f7c1-424c-8c89-b9c115472e08",
|
||||
Action = "event_alert",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "asc.web.studio",
|
||||
Action = "admin_notify",
|
||||
Recipient = "cd84e66b-b803-40fc-99f9-b2969a54a1de",
|
||||
Sender = "email.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "SetAccess",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "ResponsibleForTask",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "AddRelationshipEvent",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "ExportCompleted",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "CreateNewContact",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Sender = "email.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "ResponsibleForOpportunity",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Sender = "email.sender|messanger.sender"
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "asc.web.studio",
|
||||
Action = "periodic_notify",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Sender = "email.sender"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Subscription", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Source")
|
||||
.HasColumnName("source")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Action")
|
||||
.HasColumnName("action")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Recipient")
|
||||
.HasColumnName("recipient")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Object")
|
||||
.HasColumnName("object")
|
||||
.HasColumnType("varchar(128)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Unsubscribed")
|
||||
.HasColumnName("unsubscribed")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.HasKey("Tenant", "Source", "Action", "Recipient", "Object")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("core_subscription");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "asc.web.studio",
|
||||
Action = "send_whats_new",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6504977c-75af-4691-9099-084d3ddeea04",
|
||||
Action = "new feed",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6a598c74-91ae-437d-a5f4-ad339bd11bb2",
|
||||
Action = "new post",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "853b6eb9-73ee-438d-9b09-8ffeedf36234",
|
||||
Action = "new topic in forum",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "9d51954f-db9b-4aed-94e3-ed70b914e10",
|
||||
Action = "new photo uploaded",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "28b10049-dd20-4f54-b986-873bc14ccfc7",
|
||||
Action = "new bookmark created",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "742cf945-cbbc-4a57-82d6-1600a12cf8ca",
|
||||
Action = "new wiki page",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "37620ae5-c40b-45ce-855a-39dd7d76a1fa",
|
||||
Action = "BirthdayReminderd",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0",
|
||||
Action = "sharedocument",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0",
|
||||
Action = "sharefolder",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "40650da3-f7c1-424c-8c89-b9c115472e08",
|
||||
Action = "calendar_sharing",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "40650da3-f7c1-424c-8c89-b9c115472e08",
|
||||
Action = "event_alert",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "asc.web.studio",
|
||||
Action = "admin_notify",
|
||||
Recipient = "cd84e66b-b803-40fc-99f9-b2969a54a1de",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "SetAccess",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "ResponsibleForTask",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "AddRelationshipEvent",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "ExportCompleted",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "CreateNewContact",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "13ff36fb-0272-4887-b416-74f52b0d0b02",
|
||||
Action = "ResponsibleForOpportunity",
|
||||
Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Tenant = -1,
|
||||
Source = "asc.web.studio",
|
||||
Action = "periodic_notify",
|
||||
Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e",
|
||||
Object = "",
|
||||
Unsubscribed = false
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b =>
|
||||
{
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("userid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("GroupId")
|
||||
.HasColumnName("groupid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("RefType")
|
||||
.HasColumnName("ref_type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<bool>("Removed")
|
||||
.HasColumnName("removed")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.HasKey("Tenant", "UserId", "GroupId", "RefType")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.ToTable("core_usergroup");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Tenant = 1,
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
GroupId = "cd84e66b-b803-40fc-99f9-b2969a54a1de",
|
||||
RefType = 0,
|
||||
LastModified = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
Removed = false
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserPhoto", b =>
|
||||
{
|
||||
b.Property<string>("UserId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("userid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<byte[]>("Photo")
|
||||
.IsRequired()
|
||||
.HasColumnName("photo")
|
||||
.HasColumnType("mediumblob");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("UserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("Tenant")
|
||||
.HasName("tenant");
|
||||
|
||||
b.ToTable("core_userphoto");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b =>
|
||||
{
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("userid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime?>("LastModified")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("PwdHash")
|
||||
.HasColumnName("pwdhash")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("PwdHashSha512")
|
||||
.HasColumnName("pwdhashsha512")
|
||||
.HasColumnType("varchar(512)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Tenant")
|
||||
.HasColumnName("tenant")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("UserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("PwdHash")
|
||||
.HasName("pwdhash");
|
||||
|
||||
b.HasIndex("Tenant")
|
||||
.HasName("tenant");
|
||||
|
||||
b.ToTable("core_usersecurity");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
LastModified = new DateTime(2020, 10, 6, 10, 16, 22, 182, DateTimeKind.Utc).AddTicks(12),
|
||||
PwdHash = "vLFfghR5tNV3K9DKhmwArV+SbjWAcgZZzIDTnJ0JgCo=",
|
||||
PwdHashSha512 = "USubvPlB+ogq0Q1trcSupg==",
|
||||
Tenant = 1
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.User", null)
|
||||
.WithMany("Groups")
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.User", null)
|
||||
.WithOne("UserSecurity")
|
||||
.HasForeignKey("ASC.Core.Common.EF.UserSecurity", "UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
285
common/ASC.Core.Common/Migrations/MySql/VoipDbContextMySql/20201006095826_VoipDbContextMySql.Designer.cs
generated
Normal file
285
common/ASC.Core.Common/Migrations/MySql/VoipDbContextMySql/20201006095826_VoipDbContextMySql.Designer.cs
generated
Normal file
@ -0,0 +1,285 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.VoipDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlVoipDbContext))]
|
||||
[Migration("20201006095826_VoipDbContextMySql")]
|
||||
partial class VoipDbContextMySql
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.CrmContact", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("CompanyId")
|
||||
.HasColumnName("company_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("CompanyName")
|
||||
.HasColumnName("company_name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("ContactTypeId")
|
||||
.HasColumnName("contact_type_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("CreateBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("create_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreateOn")
|
||||
.HasColumnName("create_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Currency")
|
||||
.HasColumnName("currency")
|
||||
.HasColumnType("varchar(3)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("DisplayName")
|
||||
.HasColumnName("display_name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("FirstName")
|
||||
.HasColumnName("first_name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Industry")
|
||||
.HasColumnName("industry")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("IsCompany")
|
||||
.HasColumnName("is_company")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool>("IsShared")
|
||||
.HasColumnName("is_shared")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("LastModifedBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("last_modifed_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModifedOn")
|
||||
.HasColumnName("last_modifed_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("LastName")
|
||||
.HasColumnName("last_name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Notes")
|
||||
.HasColumnName("notes")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("StatusId")
|
||||
.HasColumnName("status_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.HasColumnName("title")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CreateOn")
|
||||
.HasName("create_on");
|
||||
|
||||
b.HasIndex("LastModifedOn", "TenantId")
|
||||
.HasName("last_modifed_on");
|
||||
|
||||
b.HasIndex("TenantId", "CompanyId")
|
||||
.HasName("company_id");
|
||||
|
||||
b.HasIndex("TenantId", "DisplayName")
|
||||
.HasName("display_name");
|
||||
|
||||
b.ToTable("crm_contact");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbVoipCall", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("AnsweredBy")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("answered_by")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasDefaultValueSql("'00000000-0000-0000-0000-000000000000'")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("ContactId")
|
||||
.HasColumnName("contact_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("CrmContactId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("DialDate")
|
||||
.HasColumnName("dial_date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("DialDuration")
|
||||
.HasColumnName("dial_duration")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("NumberFrom")
|
||||
.IsRequired()
|
||||
.HasColumnName("number_from")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("NumberTo")
|
||||
.IsRequired()
|
||||
.HasColumnName("number_to")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ParentCallId")
|
||||
.IsRequired()
|
||||
.HasColumnName("parent_call_id")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<decimal>("Price")
|
||||
.HasColumnName("price")
|
||||
.HasColumnType("decimal(10,4)");
|
||||
|
||||
b.Property<int>("RecordDuration")
|
||||
.HasColumnName("record_duration")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<decimal>("RecordPrice")
|
||||
.HasColumnName("record_price")
|
||||
.HasColumnType("decimal(10,4)");
|
||||
|
||||
b.Property<string>("RecordSid")
|
||||
.HasColumnName("record_sid")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("RecordUrl")
|
||||
.HasColumnName("record_url")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.HasColumnName("status")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CrmContactId");
|
||||
|
||||
b.HasIndex("TenantId")
|
||||
.HasName("tenant_id");
|
||||
|
||||
b.HasIndex("ParentCallId", "TenantId")
|
||||
.HasName("parent_call_id");
|
||||
|
||||
b.ToTable("crm_voip_calls");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.VoipNumber", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Alias")
|
||||
.HasColumnName("alias")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Number")
|
||||
.IsRequired()
|
||||
.HasColumnName("number")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Settings")
|
||||
.HasColumnName("settings")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("TenantId")
|
||||
.HasName("tenant_id");
|
||||
|
||||
b.ToTable("crm_voip_number");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbVoipCall", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.Model.CrmContact", "CrmContact")
|
||||
.WithMany()
|
||||
.HasForeignKey("CrmContactId");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,177 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.VoipDbContextMySql
|
||||
{
|
||||
public partial class VoipDbContextMySql : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "crm_contact",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
is_company = table.Column<bool>(nullable: false),
|
||||
notes = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
title = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
first_name = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
last_name = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
company_name = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
industry = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
status_id = table.Column<int>(nullable: false),
|
||||
company_id = table.Column<int>(nullable: false),
|
||||
contact_type_id = table.Column<int>(nullable: false),
|
||||
create_by = table.Column<string>(type: "char(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
create_on = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
last_modifed_by = table.Column<string>(type: "char(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
last_modifed_on = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
display_name = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
is_shared = table.Column<bool>(nullable: false),
|
||||
currency = table.Column<string>(type: "varchar(3)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_crm_contact", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "crm_voip_number",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
number = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
alias = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
settings = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
tenant_id = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_crm_voip_number", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "crm_voip_calls",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
parent_call_id = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
number_from = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
number_to = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
status = table.Column<int>(nullable: false),
|
||||
answered_by = table.Column<string>(type: "varchar(50)", nullable: false, defaultValueSql: "'00000000-0000-0000-0000-000000000000'")
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
dial_date = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
dial_duration = table.Column<int>(nullable: false),
|
||||
record_sid = table.Column<string>(type: "varchar(50)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
record_url = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
record_duration = table.Column<int>(nullable: false),
|
||||
record_price = table.Column<decimal>(type: "decimal(10,4)", nullable: false),
|
||||
contact_id = table.Column<int>(nullable: false),
|
||||
price = table.Column<decimal>(type: "decimal(10,4)", nullable: false),
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
CrmContactId = table.Column<int>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_crm_voip_calls", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "create_on",
|
||||
table: "crm_contact",
|
||||
column: "create_on");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "last_modifed_on",
|
||||
table: "crm_contact",
|
||||
columns: new[] { "last_modifed_on", "tenant_id" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "company_id",
|
||||
table: "crm_contact",
|
||||
columns: new[] { "tenant_id", "company_id" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "display_name",
|
||||
table: "crm_contact",
|
||||
columns: new[] { "tenant_id", "display_name" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_crm_voip_calls_CrmContactId",
|
||||
table: "crm_voip_calls",
|
||||
column: "CrmContactId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "tenant_id",
|
||||
table: "crm_voip_calls",
|
||||
column: "tenant_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "parent_call_id",
|
||||
table: "crm_voip_calls",
|
||||
columns: new[] { "parent_call_id", "tenant_id" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "tenant_id",
|
||||
table: "crm_voip_number",
|
||||
column: "tenant_id");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "crm_voip_calls");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "crm_voip_number");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "crm_contact");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,283 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.VoipDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlVoipDbContext))]
|
||||
partial class VoipDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.CrmContact", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("CompanyId")
|
||||
.HasColumnName("company_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("CompanyName")
|
||||
.HasColumnName("company_name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("ContactTypeId")
|
||||
.HasColumnName("contact_type_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("CreateBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("create_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreateOn")
|
||||
.HasColumnName("create_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Currency")
|
||||
.HasColumnName("currency")
|
||||
.HasColumnType("varchar(3)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("DisplayName")
|
||||
.HasColumnName("display_name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("FirstName")
|
||||
.HasColumnName("first_name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Industry")
|
||||
.HasColumnName("industry")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("IsCompany")
|
||||
.HasColumnName("is_company")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool>("IsShared")
|
||||
.HasColumnName("is_shared")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("LastModifedBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("last_modifed_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModifedOn")
|
||||
.HasColumnName("last_modifed_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("LastName")
|
||||
.HasColumnName("last_name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Notes")
|
||||
.HasColumnName("notes")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("StatusId")
|
||||
.HasColumnName("status_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.HasColumnName("title")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CreateOn")
|
||||
.HasName("create_on");
|
||||
|
||||
b.HasIndex("LastModifedOn", "TenantId")
|
||||
.HasName("last_modifed_on");
|
||||
|
||||
b.HasIndex("TenantId", "CompanyId")
|
||||
.HasName("company_id");
|
||||
|
||||
b.HasIndex("TenantId", "DisplayName")
|
||||
.HasName("display_name");
|
||||
|
||||
b.ToTable("crm_contact");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbVoipCall", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("AnsweredBy")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("answered_by")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasDefaultValueSql("'00000000-0000-0000-0000-000000000000'")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("ContactId")
|
||||
.HasColumnName("contact_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("CrmContactId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("DialDate")
|
||||
.HasColumnName("dial_date")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("DialDuration")
|
||||
.HasColumnName("dial_duration")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("NumberFrom")
|
||||
.IsRequired()
|
||||
.HasColumnName("number_from")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("NumberTo")
|
||||
.IsRequired()
|
||||
.HasColumnName("number_to")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("ParentCallId")
|
||||
.IsRequired()
|
||||
.HasColumnName("parent_call_id")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<decimal>("Price")
|
||||
.HasColumnName("price")
|
||||
.HasColumnType("decimal(10,4)");
|
||||
|
||||
b.Property<int>("RecordDuration")
|
||||
.HasColumnName("record_duration")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<decimal>("RecordPrice")
|
||||
.HasColumnName("record_price")
|
||||
.HasColumnType("decimal(10,4)");
|
||||
|
||||
b.Property<string>("RecordSid")
|
||||
.HasColumnName("record_sid")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("RecordUrl")
|
||||
.HasColumnName("record_url")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.HasColumnName("status")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CrmContactId");
|
||||
|
||||
b.HasIndex("TenantId")
|
||||
.HasName("tenant_id");
|
||||
|
||||
b.HasIndex("ParentCallId", "TenantId")
|
||||
.HasName("parent_call_id");
|
||||
|
||||
b.ToTable("crm_voip_calls");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.VoipNumber", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Alias")
|
||||
.HasColumnName("alias")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Number")
|
||||
.IsRequired()
|
||||
.HasColumnName("number")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Settings")
|
||||
.HasColumnName("settings")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("TenantId")
|
||||
.HasName("tenant_id");
|
||||
|
||||
b.ToTable("crm_voip_number");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbVoipCall", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.Model.CrmContact", "CrmContact")
|
||||
.WithMany()
|
||||
.HasForeignKey("CrmContactId");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,167 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.WebstudioDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlWebstudioDbContext))]
|
||||
[Migration("20201006101804_WebstudioDbContextMySql")]
|
||||
partial class WebstudioDbContextMySql
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioIndex", b =>
|
||||
{
|
||||
b.Property<string>("IndexName")
|
||||
.HasColumnName("index_name")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.HasKey("IndexName")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("webstudio_index");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioSettings", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("TenantID")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Id")
|
||||
.HasColumnName("ID")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("UserID")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Data")
|
||||
.IsRequired()
|
||||
.HasColumnType("mediumtext")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("TenantId", "Id", "UserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("Id")
|
||||
.HasName("ID");
|
||||
|
||||
b.ToTable("webstudio_settings");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
TenantId = 1,
|
||||
Id = "9a925891-1f92-4ed7-b277-d6f649739f06",
|
||||
UserId = "00000000-0000-0000-0000-000000000000",
|
||||
Data = "{'Analytics':true,'Completed':true}"
|
||||
},
|
||||
new
|
||||
{
|
||||
TenantId = 1,
|
||||
Id = "ab5b3c97-a972-475c-bb13-71936186c4e6",
|
||||
UserId = "00000000-0000-0000-0000-000000000000",
|
||||
Data = "{'ColorThemeName':'pure - orange','FirstRequest':false}"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioUserVisit", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenantid")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("VisitDate")
|
||||
.HasColumnName("visitdate")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("ProductId")
|
||||
.HasColumnName("productid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("userid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("FirstVisitTime")
|
||||
.HasColumnName("firstvisittime")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<DateTime>("LastVisitTime")
|
||||
.HasColumnName("lastvisittime")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("VisitCount")
|
||||
.HasColumnName("visitcount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("TenantId", "VisitDate", "ProductId", "UserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("VisitDate")
|
||||
.HasName("visitdate");
|
||||
|
||||
b.ToTable("webstudio_uservisit");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
TenantId = 1,
|
||||
VisitDate = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(1620),
|
||||
ProductId = "00000000-0000-0000-0000-000000000000",
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
FirstVisitTime = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(4248),
|
||||
LastVisitTime = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(4835),
|
||||
VisitCount = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
TenantId = 1,
|
||||
VisitDate = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5443),
|
||||
ProductId = "00000000-0000-0000-0000-000000000000",
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
FirstVisitTime = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5501),
|
||||
LastVisitTime = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5509),
|
||||
VisitCount = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
TenantId = 1,
|
||||
VisitDate = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5519),
|
||||
ProductId = "e67be73d-f9ae-4ce1-8fec-1880cb518cb4",
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
FirstVisitTime = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5525),
|
||||
LastVisitTime = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5526),
|
||||
VisitCount = 1
|
||||
});
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.WebstudioDbContextMySql
|
||||
{
|
||||
public partial class WebstudioDbContextMySql : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "webstudio_index",
|
||||
columns: table => new
|
||||
{
|
||||
index_name = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
last_modified = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => x.index_name);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "webstudio_settings",
|
||||
columns: table => new
|
||||
{
|
||||
TenantID = table.Column<int>(nullable: false),
|
||||
ID = table.Column<string>(type: "varchar(64)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
UserID = table.Column<string>(type: "varchar(64)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
Data = table.Column<string>(type: "mediumtext", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.TenantID, x.ID, x.UserID });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "webstudio_uservisit",
|
||||
columns: table => new
|
||||
{
|
||||
tenantid = table.Column<int>(nullable: false),
|
||||
visitdate = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
productid = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
userid = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
visitcount = table.Column<int>(nullable: false),
|
||||
firstvisittime = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
lastvisittime = table.Column<DateTime>(type: "datetime", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.tenantid, x.visitdate, x.productid, x.userid });
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "webstudio_settings",
|
||||
columns: new[] { "TenantID", "ID", "UserID", "Data" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 1, "9a925891-1f92-4ed7-b277-d6f649739f06", "00000000-0000-0000-0000-000000000000", "{'Analytics':true,'Completed':true}" },
|
||||
{ 1, "ab5b3c97-a972-475c-bb13-71936186c4e6", "00000000-0000-0000-0000-000000000000", "{'ColorThemeName':'pure - orange','FirstRequest':false}" }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "webstudio_uservisit",
|
||||
columns: new[] { "tenantid", "visitdate", "productid", "userid", "firstvisittime", "lastvisittime", "visitcount" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 1, new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(1620), "00000000-0000-0000-0000-000000000000", "66faa6e4-f133-11ea-b126-00ffeec8b4ef", new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(4248), new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(4835), 3 },
|
||||
{ 1, new DateTime(2020, 10, 7, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5443), "00000000-0000-0000-0000-000000000000", "66faa6e4-f133-11ea-b126-00ffeec8b4ef", new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5501), new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5509), 2 },
|
||||
{ 1, new DateTime(2020, 10, 8, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5519), "e67be73d-f9ae-4ce1-8fec-1880cb518cb4", "66faa6e4-f133-11ea-b126-00ffeec8b4ef", new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5525), new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5526), 1 }
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "ID",
|
||||
table: "webstudio_settings",
|
||||
column: "ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "visitdate",
|
||||
table: "webstudio_uservisit",
|
||||
column: "visitdate");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "webstudio_index");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "webstudio_settings");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "webstudio_uservisit");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,165 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.MySql.WebstudioDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlWebstudioDbContext))]
|
||||
partial class WebstudioDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioIndex", b =>
|
||||
{
|
||||
b.Property<string>("IndexName")
|
||||
.HasColumnName("index_name")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.HasKey("IndexName")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("webstudio_index");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioSettings", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("TenantID")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Id")
|
||||
.HasColumnName("ID")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("UserID")
|
||||
.HasColumnType("varchar(64)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Data")
|
||||
.IsRequired()
|
||||
.HasColumnType("mediumtext")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("TenantId", "Id", "UserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("Id")
|
||||
.HasName("ID");
|
||||
|
||||
b.ToTable("webstudio_settings");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
TenantId = 1,
|
||||
Id = "9a925891-1f92-4ed7-b277-d6f649739f06",
|
||||
UserId = "00000000-0000-0000-0000-000000000000",
|
||||
Data = "{'Analytics':true,'Completed':true}"
|
||||
},
|
||||
new
|
||||
{
|
||||
TenantId = 1,
|
||||
Id = "ab5b3c97-a972-475c-bb13-71936186c4e6",
|
||||
UserId = "00000000-0000-0000-0000-000000000000",
|
||||
Data = "{'ColorThemeName':'pure - orange','FirstRequest':false}"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioUserVisit", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenantid")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("VisitDate")
|
||||
.HasColumnName("visitdate")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("ProductId")
|
||||
.HasColumnName("productid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("userid")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("FirstVisitTime")
|
||||
.HasColumnName("firstvisittime")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<DateTime>("LastVisitTime")
|
||||
.HasColumnName("lastvisittime")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("VisitCount")
|
||||
.HasColumnName("visitcount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("TenantId", "VisitDate", "ProductId", "UserId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("VisitDate")
|
||||
.HasName("visitdate");
|
||||
|
||||
b.ToTable("webstudio_uservisit");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
TenantId = 1,
|
||||
VisitDate = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(1620),
|
||||
ProductId = "00000000-0000-0000-0000-000000000000",
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
FirstVisitTime = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(4248),
|
||||
LastVisitTime = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(4835),
|
||||
VisitCount = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
TenantId = 1,
|
||||
VisitDate = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5443),
|
||||
ProductId = "00000000-0000-0000-0000-000000000000",
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
FirstVisitTime = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5501),
|
||||
LastVisitTime = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5509),
|
||||
VisitCount = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
TenantId = 1,
|
||||
VisitDate = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5519),
|
||||
ProductId = "e67be73d-f9ae-4ce1-8fec-1880cb518cb4",
|
||||
UserId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
FirstVisitTime = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5525),
|
||||
LastVisitTime = new DateTime(2020, 10, 6, 10, 18, 4, 448, DateTimeKind.Utc).AddTicks(5526),
|
||||
VisitCount = 1
|
||||
});
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -4,12 +4,11 @@ using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.AccountLinkContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(AccountLinkContext))]
|
||||
[DbContext(typeof(PostgreSqlAccountLinkContext))]
|
||||
[Migration("20200928233349_AccountLinkContextNpgsql")]
|
||||
partial class AccountLinkContextNpgsql
|
||||
{
|
||||
|
@ -3,12 +3,11 @@ using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.AccountLinkContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(AccountLinkContext))]
|
||||
[DbContext(typeof(PostgreSqlAccountLinkContext))]
|
||||
partial class AccountLinkContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
|
@ -4,12 +4,11 @@ using ASC.Core.Common.EF;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.CoreDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(CoreDbContext))]
|
||||
[DbContext(typeof(PostgreSqlCoreDbContext))]
|
||||
[Migration("20200929123316_CoreDbContextNpgsql")]
|
||||
partial class CoreDbContextNpgsql
|
||||
{
|
||||
|
@ -3,12 +3,11 @@ using System;
|
||||
using ASC.Core.Common.EF;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.CoreDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(CoreDbContext))]
|
||||
[DbContext(typeof(PostgreSqlCoreDbContext))]
|
||||
partial class CoreDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
|
@ -8,7 +8,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.DbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(EF.Context.DbContext))]
|
||||
[DbContext(typeof(EF.Context.PostgreSqlDbContext))]
|
||||
[Migration("20200929101139_DbContextNpgsql")]
|
||||
partial class DbContextNpgsql
|
||||
{
|
||||
|
@ -3,12 +3,11 @@ using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.DbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(EF.Context.DbContext))]
|
||||
[DbContext(typeof(EF.Context.PostgreSqlDbContext))]
|
||||
partial class DbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
|
@ -4,12 +4,11 @@ using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.FeedDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(FeedDbContext))]
|
||||
[DbContext(typeof(PostgreSqlFeedDbContext))]
|
||||
[Migration("20200929101424_FeedDbContextNpgsql")]
|
||||
partial class FeedDbContextNpgsql
|
||||
{
|
||||
|
@ -3,12 +3,11 @@ using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.FeedDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(FeedDbContext))]
|
||||
[DbContext(typeof(PostgreSqlFeedDbContext))]
|
||||
partial class FeedDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
|
@ -3,12 +3,11 @@ using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.FilesDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(FilesDbContext))]
|
||||
[DbContext(typeof(PostgreSqlFilesDbContext))]
|
||||
[Migration("20200929101551_FilesDbContextNpgsql")]
|
||||
partial class FilesDbContextNpgsql
|
||||
{
|
||||
|
@ -2,12 +2,11 @@
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.FilesDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(FilesDbContext))]
|
||||
[DbContext(typeof(PostgreSqlFilesDbContext))]
|
||||
partial class FilesDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
|
@ -8,7 +8,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.MailDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(MailDbContext))]
|
||||
[DbContext(typeof(PostgreSqlMailDbContext))]
|
||||
[Migration("20200929103811_MailDbContextNpgsql")]
|
||||
partial class MailDbContextNpgsql
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.MailDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(MailDbContext))]
|
||||
[DbContext(typeof(PostgreSqlMailDbContext))]
|
||||
partial class BlogContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
|
@ -4,12 +4,11 @@ using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.MessagesContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(MessagesContext))]
|
||||
[DbContext(typeof(PostgreSqlMessagesContext))]
|
||||
[Migration("20200929101731_MessagesContextNpgsql")]
|
||||
partial class MessagesContextNpgsql
|
||||
{
|
||||
|
@ -3,12 +3,11 @@ using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.MessagesContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(MessagesContext))]
|
||||
[DbContext(typeof(PostgreSqlMessagesContext))]
|
||||
partial class MessagesContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
|
@ -4,12 +4,11 @@ using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.NotifyDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(NotifyDbContext))]
|
||||
[DbContext(typeof(PostgreSqlNotifyDbContext))]
|
||||
[Migration("20200929101850_NotifyDbContextNpgsql")]
|
||||
partial class NotifyDbContextNpgsql
|
||||
{
|
||||
|
@ -3,12 +3,11 @@ using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.NotifyDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(NotifyDbContext))]
|
||||
[DbContext(typeof(PostgreSqlNotifyDbContext))]
|
||||
partial class NotifyDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
|
@ -4,12 +4,11 @@ using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.ResourceDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(ResourceDbContext))]
|
||||
[DbContext(typeof(PostgreSqlResourceDbContext))]
|
||||
[Migration("20200929102058_ResourceDbContextNpgsql")]
|
||||
partial class ResourceDbContextNpgsql
|
||||
{
|
||||
|
@ -3,12 +3,11 @@ using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.ResourceDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(ResourceDbContext))]
|
||||
[DbContext(typeof(PostgreSqlResourceDbContext))]
|
||||
partial class ResourceDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
|
@ -4,12 +4,11 @@ using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.TelegramDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(TelegramDbContext))]
|
||||
[DbContext(typeof(PostgreSqlTelegramDbContext))]
|
||||
[Migration("20201001164047_TelegramDbContextNpgsql")]
|
||||
partial class TelegramDbContextNpgsql
|
||||
{
|
||||
|
@ -3,12 +3,11 @@ using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.TelegramDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(TelegramDbContext))]
|
||||
[DbContext(typeof(PostgreSqlTelegramDbContext))]
|
||||
partial class TelegramDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
|
@ -4,12 +4,11 @@ using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.TenantDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(TenantDbContext))]
|
||||
[DbContext(typeof(PostgreSqlTenantDbContext))]
|
||||
[Migration("20200929104647_TenantDbContextNpgsql")]
|
||||
partial class TenantDbContextNpgsql
|
||||
{
|
||||
|
@ -3,12 +3,11 @@ using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.TenantDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(TenantDbContext))]
|
||||
[DbContext(typeof(PostgreSqlTenantDbContext))]
|
||||
partial class TenantDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
|
@ -4,7 +4,6 @@ using ASC.Core.Common.EF;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.UserDbContextNpgsql
|
||||
|
@ -3,7 +3,6 @@ using System;
|
||||
using ASC.Core.Common.EF;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.UserDbContextNpgsql
|
||||
|
@ -4,12 +4,11 @@ using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.VoipDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(VoipDbContext))]
|
||||
[DbContext(typeof(PostgreSqlVoipDbContext))]
|
||||
[Migration("20200929102524_VoipDbContextNpgsql")]
|
||||
partial class VoipDbContextNpgsql
|
||||
{
|
||||
|
@ -3,12 +3,11 @@ using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.VoipDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(VoipDbContext))]
|
||||
[DbContext(typeof(PostgreSqlVoipDbContext))]
|
||||
partial class VoipDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
|
@ -4,12 +4,11 @@ using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.WebstudioDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(WebstudioDbContext))]
|
||||
[DbContext(typeof(PostgreSqlWebstudioDbContext))]
|
||||
[Migration("20200929102646_WebstudioDbContextNpgsql")]
|
||||
partial class WebstudioDbContextNpgsql
|
||||
{
|
||||
|
@ -3,12 +3,11 @@ using System;
|
||||
using ASC.Core.Common.EF.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Core.Common.Migrations.Npgsql.WebstudioDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(WebstudioDbContext))]
|
||||
[DbContext(typeof(PostgreSqlWebstudioDbContext))]
|
||||
partial class WebstudioDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
|
@ -1,5 +1,4 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
using ASC.Core.Common.EF;
|
||||
using ASC.Core.Common.EF.Model;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
@ -1,11 +1,14 @@
|
||||
using ASC.Common;
|
||||
using ASC.Core.Common.EF;
|
||||
using ASC.Core.Common.EF.Model;
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ASC.Files.Core.EF
|
||||
{
|
||||
public class MySqlFilesDbContext : FilesDbContext { }
|
||||
public class PostgreSqlFilesDbContext : FilesDbContext { }
|
||||
public class FilesDbContext : BaseDbContext
|
||||
{
|
||||
public DbSet<DbFile> Files { get; set; }
|
||||
@ -19,7 +22,17 @@ namespace ASC.Files.Core.EF
|
||||
public DbSet<DbFilesTag> Tag { get; set; }
|
||||
public DbSet<DbFilesThirdpartyApp> ThirdpartyApp { get; set; }
|
||||
public DbSet<DbTenant> Tenants { get; set; }
|
||||
|
||||
protected override Dictionary<Provider, Func<BaseDbContext>> ProviderContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return new Dictionary<Provider, Func<BaseDbContext>>()
|
||||
{
|
||||
{ Provider.MySql, () => new MySqlFilesDbContext() } ,
|
||||
{ Provider.Postrge, () => new PostgreSqlFilesDbContext() } ,
|
||||
};
|
||||
}
|
||||
}
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
ModelBuilderWrapper
|
||||
|
@ -0,0 +1,711 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Files.Core.EF;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Files.Core.Migrations.MySql.FilesDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlFilesDbContext))]
|
||||
[Migration("20201006102016_FilesDbContextMySql")]
|
||||
partial class FilesDbContextMySql
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenant", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Alias")
|
||||
.IsRequired()
|
||||
.HasColumnName("alias")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Calls")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("calls")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasDefaultValueSql("true");
|
||||
|
||||
b.Property<DateTime>("CreationDateTime")
|
||||
.HasColumnName("creationdatetime")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int?>("Industry")
|
||||
.HasColumnName("industry")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Language")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("language")
|
||||
.HasColumnType("char(10)")
|
||||
.HasDefaultValueSql("'en-US'")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("MappedDomain")
|
||||
.HasColumnName("mappeddomain")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnName("name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("OwnerId")
|
||||
.IsRequired()
|
||||
.HasColumnName("owner_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("PaymentId")
|
||||
.HasColumnName("payment_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Public")
|
||||
.HasColumnName("public")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("PublicVisibleProducts")
|
||||
.HasColumnName("publicvisibleproducts")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Spam")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("spam")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasDefaultValueSql("true");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.HasColumnName("status")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("StatusChanged")
|
||||
.HasColumnName("statuschanged")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("TimeZone")
|
||||
.HasColumnName("timezone")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("TrustedDomains")
|
||||
.HasColumnName("trusteddomains")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TrustedDomainsEnabled")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("trusteddomainsenabled")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'1'");
|
||||
|
||||
b.Property<int>("Version")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("version")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'2'");
|
||||
|
||||
b.Property<DateTime>("VersionChanged")
|
||||
.HasColumnName("version_changed")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<DateTime?>("Version_Changed")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.HasIndex("MappedDomain")
|
||||
.HasName("mappeddomain");
|
||||
|
||||
b.HasIndex("Version")
|
||||
.HasName("version");
|
||||
|
||||
b.ToTable("tenants_tenants","onlyoffice");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
Alias = "localhost",
|
||||
Calls = false,
|
||||
CreationDateTime = new DateTime(2020, 10, 6, 10, 20, 16, 349, DateTimeKind.Utc).AddTicks(1354),
|
||||
LastModified = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
Name = "Web Office",
|
||||
OwnerId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
Public = false,
|
||||
Spam = false,
|
||||
Status = 0,
|
||||
TrustedDomainsEnabled = 0,
|
||||
Version = 0,
|
||||
VersionChanged = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantPartner", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("AffiliateId")
|
||||
.HasColumnName("affiliate_id")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.Property<string>("Campaign")
|
||||
.HasColumnName("campaign")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.Property<string>("PartnerId")
|
||||
.HasColumnName("partner_id")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.HasKey("TenantId");
|
||||
|
||||
b.ToTable("tenants_partners");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFile", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Id")
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Version")
|
||||
.HasColumnName("version")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Category")
|
||||
.HasColumnName("category")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Changes")
|
||||
.HasColumnName("changes")
|
||||
.HasColumnType("mediumtext")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Comment")
|
||||
.HasColumnName("comment")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<long>("ContentLength")
|
||||
.HasColumnName("content_length")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("ConvertedType")
|
||||
.HasColumnName("converted_type")
|
||||
.HasColumnType("varchar(10)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("CreateBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("create_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreateOn")
|
||||
.HasColumnName("create_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<bool>("CurrentVersion")
|
||||
.HasColumnName("current_version")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool>("Encrypted")
|
||||
.HasColumnName("encrypted")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<int>("FileStatus")
|
||||
.HasColumnName("file_status")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FolderId")
|
||||
.HasColumnName("folder_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Forcesave")
|
||||
.HasColumnName("forcesave")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("ModifiedBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("modified_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("ModifiedOn")
|
||||
.HasColumnName("modified_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasColumnName("title")
|
||||
.HasColumnType("varchar(400)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("VersionGroup")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("version_group")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'1'");
|
||||
|
||||
b.HasKey("TenantId", "Id", "Version")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("FolderId")
|
||||
.HasName("folder_id");
|
||||
|
||||
b.HasIndex("Id")
|
||||
.HasName("id");
|
||||
|
||||
b.HasIndex("ModifiedOn")
|
||||
.HasName("modified_on");
|
||||
|
||||
b.ToTable("files_file");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesBunchObjects", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("RightNode")
|
||||
.HasColumnName("right_node")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("LeftNode")
|
||||
.IsRequired()
|
||||
.HasColumnName("left_node")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("TenantId", "RightNode")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("LeftNode")
|
||||
.HasName("left_node");
|
||||
|
||||
b.ToTable("files_bunch_objects");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesSecurity", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("EntryId")
|
||||
.HasColumnName("entry_id")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("EntryType")
|
||||
.HasColumnName("entry_type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Subject")
|
||||
.HasColumnName("subject")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Owner")
|
||||
.IsRequired()
|
||||
.HasColumnName("owner")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Security")
|
||||
.HasColumnName("security")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("TimeStamp")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnName("timestamp")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.HasKey("TenantId", "EntryId", "EntryType", "Subject")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("Owner")
|
||||
.HasName("owner");
|
||||
|
||||
b.HasIndex("TenantId", "EntryType", "EntryId", "Owner")
|
||||
.HasName("tenant_id");
|
||||
|
||||
b.ToTable("files_security");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTag", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Flag")
|
||||
.HasColumnName("flag")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnName("name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Owner")
|
||||
.IsRequired()
|
||||
.HasColumnName("owner")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("TenantId", "Owner", "Name", "Flag")
|
||||
.HasName("name");
|
||||
|
||||
b.ToTable("files_tag");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTagLink", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("TagId")
|
||||
.HasColumnName("tag_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("EntryId")
|
||||
.HasColumnName("entry_id")
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("EntryType")
|
||||
.HasColumnName("entry_type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("CreateBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("create_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreateOn")
|
||||
.HasColumnName("create_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("TagCount")
|
||||
.HasColumnName("tag_count")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("TenantId", "TagId", "EntryId", "EntryType")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("CreateOn")
|
||||
.HasName("create_on");
|
||||
|
||||
b.HasIndex("TenantId", "EntryId", "EntryType")
|
||||
.HasName("entry_id");
|
||||
|
||||
b.ToTable("files_tag_link");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyAccount", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("CreateOn")
|
||||
.HasColumnName("create_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("FolderType")
|
||||
.HasColumnName("folder_type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Password")
|
||||
.IsRequired()
|
||||
.HasColumnName("password")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Provider")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("provider")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasDefaultValueSql("'0'")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasColumnName("customer_title")
|
||||
.HasColumnType("varchar(400)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Token")
|
||||
.HasColumnName("token")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Url")
|
||||
.HasColumnName("url")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.IsRequired()
|
||||
.HasColumnName("user_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UserName")
|
||||
.IsRequired()
|
||||
.HasColumnName("user_name")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("files_thirdparty_account");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyApp", b =>
|
||||
{
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("user_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("App")
|
||||
.HasColumnName("app")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("ModifiedOn")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnName("modified_on")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Token")
|
||||
.HasColumnName("token")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("UserId", "App")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("files_thirdparty_app");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyIdMapping", b =>
|
||||
{
|
||||
b.Property<string>("HashId")
|
||||
.HasColumnName("hash_id")
|
||||
.HasColumnType("char(32)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Id")
|
||||
.IsRequired()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("HashId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("TenantId", "HashId")
|
||||
.HasName("index_1");
|
||||
|
||||
b.ToTable("files_thirdparty_id_mapping");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFolder", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("CreateBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("create_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreateOn")
|
||||
.HasColumnName("create_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("FilesCount")
|
||||
.HasColumnName("filesCount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FolderType")
|
||||
.HasColumnName("folder_type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FoldersCount")
|
||||
.HasColumnName("foldersCount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("ModifiedBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("modified_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("ModifiedOn")
|
||||
.HasColumnName("modified_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("ParentId")
|
||||
.HasColumnName("parent_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasColumnName("title")
|
||||
.HasColumnType("varchar(400)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ModifiedOn")
|
||||
.HasName("modified_on");
|
||||
|
||||
b.HasIndex("TenantId", "ParentId")
|
||||
.HasName("parent_id");
|
||||
|
||||
b.ToTable("files_folder");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFolderTree", b =>
|
||||
{
|
||||
b.Property<int>("ParentId")
|
||||
.HasColumnName("parent_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FolderId")
|
||||
.HasColumnName("folder_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Level")
|
||||
.HasColumnName("level")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("ParentId", "FolderId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("FolderId")
|
||||
.HasName("folder_id");
|
||||
|
||||
b.ToTable("files_folder_tree");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantPartner", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant")
|
||||
.WithOne("Partner")
|
||||
.HasForeignKey("ASC.Core.Common.EF.Model.DbTenantPartner", "TenantId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,350 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ASC.Files.Core.Migrations.MySql.FilesDbContextMySql
|
||||
{
|
||||
public partial class FilesDbContextMySql : Microsoft.EntityFrameworkCore.Migrations.Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "files_bunch_objects",
|
||||
columns: table => new
|
||||
{
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
right_node = table.Column<string>(type: "varchar(255)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
left_node = table.Column<string>(type: "varchar(255)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.tenant_id, x.right_node });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "files_file",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false),
|
||||
version = table.Column<int>(nullable: false),
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
version_group = table.Column<int>(nullable: false, defaultValueSql: "'1'"),
|
||||
current_version = table.Column<bool>(nullable: false),
|
||||
folder_id = table.Column<int>(nullable: false),
|
||||
title = table.Column<string>(type: "varchar(400)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
content_length = table.Column<long>(nullable: false),
|
||||
file_status = table.Column<int>(nullable: false),
|
||||
category = table.Column<int>(nullable: false),
|
||||
create_by = table.Column<string>(type: "char(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
create_on = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
modified_by = table.Column<string>(type: "char(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
modified_on = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
converted_type = table.Column<string>(type: "varchar(10)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
comment = table.Column<string>(type: "varchar(255)", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
changes = table.Column<string>(type: "mediumtext", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
encrypted = table.Column<bool>(nullable: false),
|
||||
forcesave = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.tenant_id, x.id, x.version });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "files_folder",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
parent_id = table.Column<int>(nullable: false),
|
||||
title = table.Column<string>(type: "varchar(400)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
folder_type = table.Column<int>(nullable: false),
|
||||
create_by = table.Column<string>(type: "char(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
create_on = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
modified_by = table.Column<string>(type: "char(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
modified_on = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
foldersCount = table.Column<int>(nullable: false),
|
||||
filesCount = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_files_folder", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "files_folder_tree",
|
||||
columns: table => new
|
||||
{
|
||||
folder_id = table.Column<int>(nullable: false),
|
||||
parent_id = table.Column<int>(nullable: false),
|
||||
level = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.parent_id, x.folder_id });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "files_security",
|
||||
columns: table => new
|
||||
{
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
entry_id = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
entry_type = table.Column<int>(nullable: false),
|
||||
subject = table.Column<string>(type: "char(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
owner = table.Column<string>(type: "char(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
security = table.Column<int>(nullable: false),
|
||||
timestamp = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.tenant_id, x.entry_id, x.entry_type, x.subject });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "files_tag",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
name = table.Column<string>(type: "varchar(255)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
owner = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
flag = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_files_tag", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "files_tag_link",
|
||||
columns: table => new
|
||||
{
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
tag_id = table.Column<int>(nullable: false),
|
||||
entry_type = table.Column<int>(nullable: false),
|
||||
entry_id = table.Column<string>(type: "varchar(32)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
create_by = table.Column<string>(type: "char(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
create_on = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
tag_count = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.tenant_id, x.tag_id, x.entry_id, x.entry_type });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "files_thirdparty_account",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
provider = table.Column<string>(type: "varchar(50)", nullable: false, defaultValueSql: "'0'")
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
customer_title = table.Column<string>(type: "varchar(400)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
user_name = table.Column<string>(type: "varchar(100)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
password = table.Column<string>(type: "varchar(100)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
token = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
user_id = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
folder_type = table.Column<int>(nullable: false),
|
||||
create_on = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
url = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
tenant_id = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_files_thirdparty_account", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "files_thirdparty_app",
|
||||
columns: table => new
|
||||
{
|
||||
user_id = table.Column<string>(type: "varchar(38)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
app = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
token = table.Column<string>(type: "text", nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
modified_on = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => new { x.user_id, x.app });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "files_thirdparty_id_mapping",
|
||||
columns: table => new
|
||||
{
|
||||
hash_id = table.Column<string>(type: "char(32)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci"),
|
||||
tenant_id = table.Column<int>(nullable: false),
|
||||
id = table.Column<string>(type: "text", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8")
|
||||
.Annotation("MySql:Collation", "utf8_general_ci")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PRIMARY", x => x.hash_id);
|
||||
});
|
||||
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "left_node",
|
||||
table: "files_bunch_objects",
|
||||
column: "left_node");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "folder_id",
|
||||
table: "files_file",
|
||||
column: "folder_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "id",
|
||||
table: "files_file",
|
||||
column: "id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "modified_on",
|
||||
table: "files_file",
|
||||
column: "modified_on");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "modified_on",
|
||||
table: "files_folder",
|
||||
column: "modified_on");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "parent_id",
|
||||
table: "files_folder",
|
||||
columns: new[] { "tenant_id", "parent_id" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "folder_id",
|
||||
table: "files_folder_tree",
|
||||
column: "folder_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "owner",
|
||||
table: "files_security",
|
||||
column: "owner");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "tenant_id",
|
||||
table: "files_security",
|
||||
columns: new[] { "tenant_id", "entry_type", "entry_id", "owner" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "name",
|
||||
table: "files_tag",
|
||||
columns: new[] { "tenant_id", "owner", "name", "flag" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "create_on",
|
||||
table: "files_tag_link",
|
||||
column: "create_on");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "entry_id",
|
||||
table: "files_tag_link",
|
||||
columns: new[] { "tenant_id", "entry_id", "entry_type" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "index_1",
|
||||
table: "files_thirdparty_id_mapping",
|
||||
columns: new[] { "tenant_id", "hash_id" });
|
||||
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "files_bunch_objects");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "files_file");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "files_folder");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "files_folder_tree");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "files_security");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "files_tag");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "files_tag_link");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "files_thirdparty_account");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "files_thirdparty_app");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "files_thirdparty_id_mapping");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,709 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ASC.Files.Core.EF;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace ASC.Files.Core.Migrations.MySql.FilesDbContextMySql
|
||||
{
|
||||
[DbContext(typeof(MySqlFilesDbContext))]
|
||||
partial class FilesDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenant", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Alias")
|
||||
.IsRequired()
|
||||
.HasColumnName("alias")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Calls")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("calls")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasDefaultValueSql("true");
|
||||
|
||||
b.Property<DateTime>("CreationDateTime")
|
||||
.HasColumnName("creationdatetime")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int?>("Industry")
|
||||
.HasColumnName("industry")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Language")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("language")
|
||||
.HasColumnType("char(10)")
|
||||
.HasDefaultValueSql("'en-US'")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("LastModified")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("last_modified")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<string>("MappedDomain")
|
||||
.HasColumnName("mappeddomain")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnName("name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("OwnerId")
|
||||
.IsRequired()
|
||||
.HasColumnName("owner_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("PaymentId")
|
||||
.HasColumnName("payment_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Public")
|
||||
.HasColumnName("public")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("PublicVisibleProducts")
|
||||
.HasColumnName("publicvisibleproducts")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<bool>("Spam")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("spam")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasDefaultValueSql("true");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.HasColumnName("status")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime?>("StatusChanged")
|
||||
.HasColumnName("statuschanged")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("TimeZone")
|
||||
.HasColumnName("timezone")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("TrustedDomains")
|
||||
.HasColumnName("trusteddomains")
|
||||
.HasColumnType("varchar(1024)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TrustedDomainsEnabled")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("trusteddomainsenabled")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'1'");
|
||||
|
||||
b.Property<int>("Version")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("version")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'2'");
|
||||
|
||||
b.Property<DateTime>("VersionChanged")
|
||||
.HasColumnName("version_changed")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<DateTime?>("Version_Changed")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LastModified")
|
||||
.HasName("last_modified");
|
||||
|
||||
b.HasIndex("MappedDomain")
|
||||
.HasName("mappeddomain");
|
||||
|
||||
b.HasIndex("Version")
|
||||
.HasName("version");
|
||||
|
||||
b.ToTable("tenants_tenants","onlyoffice");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
Alias = "localhost",
|
||||
Calls = false,
|
||||
CreationDateTime = new DateTime(2020, 10, 6, 10, 20, 16, 349, DateTimeKind.Utc).AddTicks(1354),
|
||||
LastModified = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
Name = "Web Office",
|
||||
OwnerId = "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
Public = false,
|
||||
Spam = false,
|
||||
Status = 0,
|
||||
TrustedDomainsEnabled = 0,
|
||||
Version = 0,
|
||||
VersionChanged = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantPartner", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("AffiliateId")
|
||||
.HasColumnName("affiliate_id")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.Property<string>("Campaign")
|
||||
.HasColumnName("campaign")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.Property<string>("PartnerId")
|
||||
.HasColumnName("partner_id")
|
||||
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
||||
|
||||
b.HasKey("TenantId");
|
||||
|
||||
b.ToTable("tenants_partners");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFile", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Id")
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Version")
|
||||
.HasColumnName("version")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Category")
|
||||
.HasColumnName("category")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Changes")
|
||||
.HasColumnName("changes")
|
||||
.HasColumnType("mediumtext")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Comment")
|
||||
.HasColumnName("comment")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<long>("ContentLength")
|
||||
.HasColumnName("content_length")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("ConvertedType")
|
||||
.HasColumnName("converted_type")
|
||||
.HasColumnType("varchar(10)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("CreateBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("create_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreateOn")
|
||||
.HasColumnName("create_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<bool>("CurrentVersion")
|
||||
.HasColumnName("current_version")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool>("Encrypted")
|
||||
.HasColumnName("encrypted")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<int>("FileStatus")
|
||||
.HasColumnName("file_status")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FolderId")
|
||||
.HasColumnName("folder_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Forcesave")
|
||||
.HasColumnName("forcesave")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("ModifiedBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("modified_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("ModifiedOn")
|
||||
.HasColumnName("modified_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasColumnName("title")
|
||||
.HasColumnType("varchar(400)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("VersionGroup")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("version_group")
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValueSql("'1'");
|
||||
|
||||
b.HasKey("TenantId", "Id", "Version")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("FolderId")
|
||||
.HasName("folder_id");
|
||||
|
||||
b.HasIndex("Id")
|
||||
.HasName("id");
|
||||
|
||||
b.HasIndex("ModifiedOn")
|
||||
.HasName("modified_on");
|
||||
|
||||
b.ToTable("files_file");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesBunchObjects", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("RightNode")
|
||||
.HasColumnName("right_node")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("LeftNode")
|
||||
.IsRequired()
|
||||
.HasColumnName("left_node")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("TenantId", "RightNode")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("LeftNode")
|
||||
.HasName("left_node");
|
||||
|
||||
b.ToTable("files_bunch_objects");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesSecurity", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("EntryId")
|
||||
.HasColumnName("entry_id")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("EntryType")
|
||||
.HasColumnName("entry_type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Subject")
|
||||
.HasColumnName("subject")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Owner")
|
||||
.IsRequired()
|
||||
.HasColumnName("owner")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("Security")
|
||||
.HasColumnName("security")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("TimeStamp")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnName("timestamp")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.HasKey("TenantId", "EntryId", "EntryType", "Subject")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("Owner")
|
||||
.HasName("owner");
|
||||
|
||||
b.HasIndex("TenantId", "EntryType", "EntryId", "Owner")
|
||||
.HasName("tenant_id");
|
||||
|
||||
b.ToTable("files_security");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTag", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Flag")
|
||||
.HasColumnName("flag")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnName("name")
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Owner")
|
||||
.IsRequired()
|
||||
.HasColumnName("owner")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("TenantId", "Owner", "Name", "Flag")
|
||||
.HasName("name");
|
||||
|
||||
b.ToTable("files_tag");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTagLink", b =>
|
||||
{
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("TagId")
|
||||
.HasColumnName("tag_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("EntryId")
|
||||
.HasColumnName("entry_id")
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("EntryType")
|
||||
.HasColumnName("entry_type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("CreateBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("create_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreateOn")
|
||||
.HasColumnName("create_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("TagCount")
|
||||
.HasColumnName("tag_count")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("TenantId", "TagId", "EntryId", "EntryType")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("CreateOn")
|
||||
.HasName("create_on");
|
||||
|
||||
b.HasIndex("TenantId", "EntryId", "EntryType")
|
||||
.HasName("entry_id");
|
||||
|
||||
b.ToTable("files_tag_link");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyAccount", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("CreateOn")
|
||||
.HasColumnName("create_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("FolderType")
|
||||
.HasColumnName("folder_type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Password")
|
||||
.IsRequired()
|
||||
.HasColumnName("password")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Provider")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("provider")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasDefaultValueSql("'0'")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasColumnName("customer_title")
|
||||
.HasColumnType("varchar(400)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Token")
|
||||
.HasColumnName("token")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Url")
|
||||
.HasColumnName("url")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.IsRequired()
|
||||
.HasColumnName("user_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("UserName")
|
||||
.IsRequired()
|
||||
.HasColumnName("user_name")
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("files_thirdparty_account");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyApp", b =>
|
||||
{
|
||||
b.Property<string>("UserId")
|
||||
.HasColumnName("user_id")
|
||||
.HasColumnType("varchar(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("App")
|
||||
.HasColumnName("app")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("ModifiedOn")
|
||||
.ValueGeneratedOnAddOrUpdate()
|
||||
.HasColumnName("modified_on")
|
||||
.HasColumnType("timestamp")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Token")
|
||||
.HasColumnName("token")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("UserId", "App")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.ToTable("files_thirdparty_app");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyIdMapping", b =>
|
||||
{
|
||||
b.Property<string>("HashId")
|
||||
.HasColumnName("hash_id")
|
||||
.HasColumnType("char(32)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<string>("Id")
|
||||
.IsRequired()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("text")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("HashId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("TenantId", "HashId")
|
||||
.HasName("index_1");
|
||||
|
||||
b.ToTable("files_thirdparty_id_mapping");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFolder", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnName("id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("CreateBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("create_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("CreateOn")
|
||||
.HasColumnName("create_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("FilesCount")
|
||||
.HasColumnName("filesCount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FolderType")
|
||||
.HasColumnName("folder_type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FoldersCount")
|
||||
.HasColumnName("foldersCount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("ModifiedBy")
|
||||
.IsRequired()
|
||||
.HasColumnName("modified_by")
|
||||
.HasColumnType("char(38)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.Property<DateTime>("ModifiedOn")
|
||||
.HasColumnName("modified_on")
|
||||
.HasColumnType("datetime");
|
||||
|
||||
b.Property<int>("ParentId")
|
||||
.HasColumnName("parent_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("TenantId")
|
||||
.HasColumnName("tenant_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasColumnName("title")
|
||||
.HasColumnType("varchar(400)")
|
||||
.HasAnnotation("MySql:CharSet", "utf8")
|
||||
.HasAnnotation("MySql:Collation", "utf8_general_ci");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ModifiedOn")
|
||||
.HasName("modified_on");
|
||||
|
||||
b.HasIndex("TenantId", "ParentId")
|
||||
.HasName("parent_id");
|
||||
|
||||
b.ToTable("files_folder");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Files.Core.EF.DbFolderTree", b =>
|
||||
{
|
||||
b.Property<int>("ParentId")
|
||||
.HasColumnName("parent_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FolderId")
|
||||
.HasColumnName("folder_id")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Level")
|
||||
.HasColumnName("level")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("ParentId", "FolderId")
|
||||
.HasName("PRIMARY");
|
||||
|
||||
b.HasIndex("FolderId")
|
||||
.HasName("folder_id");
|
||||
|
||||
b.ToTable("files_folder_tree");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantPartner", b =>
|
||||
{
|
||||
b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant")
|
||||
.WithOne("Partner")
|
||||
.HasForeignKey("ASC.Core.Common.EF.Model.DbTenantPartner", "TenantId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -4,12 +4,11 @@ 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;
|
||||
|
||||
namespace ASC.Files.Core.Migrations.Npgsql.FilesDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(FilesDbContext))]
|
||||
[DbContext(typeof(PostgreSqlFilesDbContext))]
|
||||
[Migration("20200929105803_FilesDbContextNpgsql")]
|
||||
partial class FilesDbContextNpgsql
|
||||
{
|
||||
|
@ -3,12 +3,11 @@ using System;
|
||||
using ASC.Files.Core.EF;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace ASC.Files.Core.Migrations.Npgsql.FilesDbContextNpgsql
|
||||
{
|
||||
[DbContext(typeof(FilesDbContext))]
|
||||
[DbContext(typeof(PostgreSqlFilesDbContext))]
|
||||
partial class FilesDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
|
Loading…
Reference in New Issue
Block a user