Entity isimlerinde Host ifadesinin kullanılması

This commit is contained in:
Sedat Öztürk 2025-11-01 15:27:08 +03:00
parent e490a1a409
commit 5c98bc3a0b
11 changed files with 3031 additions and 4255 deletions

View file

@ -2,8 +2,8 @@
public static class Prefix
{
public static string DbTablePlatform { get; set; } = "Plat";
public static string MenuPlatform { get; set; } = "P";
public static string MenuPrefix { get; set; } = "Plat";
public static string HostPrefix { get; set; } = "H";
public static string? DbSchema { get; set; } = null;
public const string ConnectionStringName = "Languages";
@ -13,6 +13,6 @@ public static class TablePrefix
{
public static string ByName(string tableName)
{
return $"{Prefix.DbTablePlatform}_{Prefix.MenuPlatform}_{tableName}";
return $"{Prefix.MenuPrefix}_{Prefix.HostPrefix}_{tableName}";
}
}

View file

@ -2,8 +2,8 @@
public static class Prefix
{
public static string DbTablePlatform { get; set; } = "Plat";
public static string MenuPlatform { get; set; } = "P";
public static string MenuPrefix { get; set; } = "Plat";
public static string HostPrefix { get; set; } = "H";
public static string? DbSchema { get; set; } = null;
public const string ConnectionStringName = "Default";
@ -13,6 +13,6 @@ public static class TablePrefix
{
public static string ByName(string tableName)
{
return $"{Prefix.DbTablePlatform}_{Prefix.MenuPlatform}_{tableName}";
return $"{Prefix.MenuPrefix}_{Prefix.HostPrefix}_{tableName}";
}
}

View file

@ -2,8 +2,8 @@
public static class Prefix
{
public static string DbTablePlatform { get; set; } = "Plat";
public static string MenuPlatform { get; set; } = "P";
public static string MenuPrefix { get; set; } = "Plat";
public static string HostPrefix { get; set; } = "H";
public static string? DbSchema { get; set; } = null;
public const string ConnectionStringName = "Notifications";
@ -13,6 +13,6 @@ public static class TablePrefix
{
public static string ByName(string tableName)
{
return $"{Prefix.DbTablePlatform}_{Prefix.MenuPlatform}_{tableName}";
return $"{Prefix.MenuPrefix}_{Prefix.HostPrefix}_{tableName}";
}
}

View file

@ -2,8 +2,8 @@
public static class Prefix
{
public static string DbTablePlatform { get; set; } = "Plat";
public static string MenuPlatform { get; set; } = "P";
public static string MenuPrefix { get; set; } = "Plat";
public static string HostPrefix { get; set; } = "H";
public static string? DbSchema { get; set; } = null;
public const string ConnectionStringName = "Settings";
@ -13,6 +13,6 @@ public static class TablePrefix
{
public static string ByName(string tableName)
{
return $"{Prefix.DbTablePlatform}_{Prefix.MenuPlatform}_{tableName}";
return $"{Prefix.MenuPrefix}_{Prefix.HostPrefix}_{tableName}";
}
}

File diff suppressed because it is too large Load diff

View file

@ -23,6 +23,117 @@ using Kurs.Platform.Extensions;
namespace Kurs.Platform.Data.Seeds;
#region SeedDtos
public class AiBotSeedDto
{
public string BotName { get; set; }
}
public class LanguageTextsSeedDto
{
public string ResourceName { get; set; }
public string Key { get; set; }
public string En { get; set; }
public string Tr { get; set; }
}
public class BackgroundWorkerSeedDto
{
public string Name { get; set; }
public string Cron { get; set; }
public string WorkerType { get; set; }
public bool IsActive { get; set; }
public string DataSourceCode { get; set; }
}
public class NotificationRuleSeedDto
{
public string NotificationType { get; set; }
public string RecipientType { get; set; }
public string RecipientId { get; set; }
public string Channel { get; set; }
public bool IsActive { get; set; }
public bool IsFixed { get; set; }
public bool IsCustomized { get; set; }
}
public class MenuSeedDto
{
public string ParentCode { get; set; }
public string Code { get; set; }
public string DisplayName { get; set; }
public int Order { get; set; }
public string Url { get; set; }
public string Icon { get; set; }
public string RequiredPermissionName { get; set; }
public bool IsDisabled { get; set; }
}
public class PermissionGroupDefinitionRecordSeedDto
{
public string Name { get; set; }
public string DisplayName { get; set; }
}
public class PermissionDefinitionRecordSeedDto
{
public string GroupName { get; set; }
public string Name { get; set; }
public string ParentName { get; set; }
public string DisplayName { get; set; }
public bool IsEnabled { get; set; }
public int MultiTenancySide { get; set; }
public string MenuGroup { get; set; }
}
public class CurrencySeedDto
{
public string Code { get; set; }
public string Symbol { get; set; }
public string Name { get; set; }
public bool IsActive { get; set; }
}
public class ContactTagSeedDto
{
public string Name { get; set; }
public string Category { get; set; }
}
public class ContactTitleSeedDto
{
public string Title { get; set; }
public string Abbreviation { get; set; }
}
public class RouteSeedDto
{
public string Key { get; set; }
public string Path { get; set; }
public string ComponentPath { get; set; }
public string RouteType { get; set; }
public string[] Authority { get; set; }
}
public class HostSeederDto
{
public List<AiBotSeedDto> AiBots { get; set; }
public List<Language> Languages { get; set; }
public List<LanguageTextsSeedDto> LanguageTexts { get; set; }
public List<DataSource> DataSources { get; set; }
public List<SettingDefinition> Settings { get; set; }
public List<BackgroundWorkerSeedDto> BackgroundWorkers { get; set; }
public List<NotificationRuleSeedDto> NotificationRules { get; set; }
public List<MenuSeedDto> Menus { get; set; }
public List<PermissionGroupDefinitionRecordSeedDto> PermissionGroupDefinitionRecords { get; set; }
public List<PermissionDefinitionRecordSeedDto> PermissionDefinitionRecords { get; set; }
public List<CurrencySeedDto> Currencies { get; set; }
public List<ContactTagSeedDto> ContactTags { get; set; }
public List<ContactTitleSeedDto> ContactTitles { get; set; }
public List<RouteSeedDto> Routes { get; set; }
}
#endregion
public class HostDataSeeder : IDataSeedContributor, ITransientDependency
{
private readonly IRepository<AiBot, Guid> _aiBotRepository;

View file

@ -4,13 +4,13 @@ namespace Kurs.Platform;
public static class TablePrefix
{
private const string PlatformPrefix = "P";
private const string HostPrefix = "H";
private const string TenantPrefix = "T";
private const string BranchPrefix = "B";
public static string PlatformByName(MenuPrefix MenuGroup, TableNameEnum tableName)
{
return $"{MenuPrefixExtensions.ToPrefix(MenuGroup)}_{PlatformPrefix}_{tableName}";
return $"{MenuPrefixExtensions.ToPrefix(MenuGroup)}_{HostPrefix}_{tableName}";
}
public static string TenantByName(MenuPrefix MenuGroup, TableNameEnum tableName)

View file

@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
namespace Kurs.Platform.Migrations
{
[DbContext(typeof(PlatformDbContext))]
[Migration("20251101082915_Initial")]
[Migration("20251101111255_Initial")]
partial class Initial
{
/// <inheritdoc />
@ -86,7 +86,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Plat_P_Language", (string)null);
b.ToTable("Plat_H_Language", (string)null);
});
modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", b =>
@ -140,7 +140,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ResourceName", "Key")
.IsUnique();
b.ToTable("Plat_P_LanguageKey", (string)null);
b.ToTable("Plat_H_LanguageKey", (string)null);
});
modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b =>
@ -203,7 +203,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ResourceName", "Key");
b.ToTable("Plat_P_LanguageText", (string)null);
b.ToTable("Plat_H_LanguageText", (string)null);
});
modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueue", b =>
@ -294,7 +294,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("TableName");
b.ToTable("Plat_P_BackgroundWorker_MailQueue", (string)null);
b.ToTable("Plat_H_BackgroundWorker_MailQueue", (string)null);
});
modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueEvents", b =>
@ -356,7 +356,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("AwsMessageId");
b.ToTable("Plat_P_BackgroundWorker_MailQueueEvents", (string)null);
b.ToTable("Plat_H_BackgroundWorker_MailQueueEvents", (string)null);
});
modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueTableFormat", b =>
@ -422,7 +422,7 @@ namespace Kurs.Platform.Migrations
.IsUnique()
.HasDatabaseName("IX_MailQueueTableFormat");
b.ToTable("Plat_P_BackgroundWorker_MailQueueTableFormat", (string)null);
b.ToTable("Plat_H_BackgroundWorker_MailQueueTableFormat", (string)null);
});
modelBuilder.Entity("Kurs.Notifications.Entities.Notification", b =>
@ -500,7 +500,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("NotificationRuleId");
b.ToTable("Plat_P_Notification", (string)null);
b.ToTable("Plat_H_Notification", (string)null);
});
modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b =>
@ -569,7 +569,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Plat_P_NotificationRule", (string)null);
b.ToTable("Plat_H_NotificationRule", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.About", b =>
@ -704,7 +704,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Plat_P_AiBot", (string)null);
b.ToTable("Plat_H_AiBot", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.Announcement", b =>
@ -1009,7 +1009,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Plat_P_BackgroundWorker", (string)null);
b.ToTable("Plat_H_BackgroundWorker", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.Badge", b =>
@ -1753,7 +1753,7 @@ namespace Kurs.Platform.Migrations
.IsUnique()
.HasFilter("[Country] IS NOT NULL");
b.ToTable("Sas_P_City", (string)null);
b.ToTable("Sas_H_City", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.Class", b =>
@ -2404,7 +2404,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Sas_P_ContactTag", (string)null);
b.ToTable("Sas_H_ContactTag", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.ContactTitle", b =>
@ -2453,7 +2453,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Sas_P_ContactTitle", (string)null);
b.ToTable("Sas_H_ContactTitle", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.CostCenter", b =>
@ -2624,7 +2624,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("GroupName");
b.ToTable("Sas_P_Country", (string)null);
b.ToTable("Sas_H_Country", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.CountryGroup", b =>
@ -2672,7 +2672,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("Name")
.IsUnique();
b.ToTable("Sas_P_CountryGroup", (string)null);
b.ToTable("Sas_H_CountryGroup", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.Currency", b =>
@ -2738,7 +2738,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Sas_P_Currency", (string)null);
b.ToTable("Sas_H_Currency", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.CustomComponent", b =>
@ -3212,7 +3212,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Sas_P_DataSource", (string)null);
b.ToTable("Sas_H_DataSource", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.Demo", b =>
@ -3500,7 +3500,7 @@ namespace Kurs.Platform.Migrations
.IsUnique()
.HasFilter("[Country] IS NOT NULL AND [Township] IS NOT NULL AND [Street] IS NOT NULL AND [ZipCode] IS NOT NULL");
b.ToTable("Sas_P_District", (string)null);
b.ToTable("Sas_H_District", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.Document", b =>
@ -5144,7 +5144,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Sas_P_ListForm", (string)null);
b.ToTable("Sas_H_ListForm", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.ListFormCustomization", b =>
@ -5209,7 +5209,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ListFormCode");
b.ToTable("Sas_P_ListFormCustomization", (string)null);
b.ToTable("Sas_H_ListFormCustomization", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.ListFormField", b =>
@ -5376,7 +5376,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ListFormCode");
b.ToTable("Sas_P_ListFormField", (string)null);
b.ToTable("Sas_H_ListFormField", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.ListFormImport", b =>
@ -5436,7 +5436,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ListFormCode");
b.ToTable("Sas_P_ListFormImport", (string)null);
b.ToTable("Sas_H_ListFormImport", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.ListFormImportExecute", b =>
@ -5506,7 +5506,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ImportId");
b.ToTable("Sas_P_ListFormImportExecute", (string)null);
b.ToTable("Sas_H_ListFormImportExecute", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.MaterialGroup", b =>
@ -5911,7 +5911,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Sas_P_Menu", (string)null);
b.ToTable("Sas_H_Menu", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.NoteType", b =>
@ -8054,7 +8054,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("Key")
.IsUnique();
b.ToTable("Sas_P_Route", (string)null);
b.ToTable("Sas_H_Route", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.SalesRejectionReason", b =>
@ -10190,7 +10190,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("DisplayOrder");
b.ToTable("Sas_P_ForumCategory", (string)null);
b.ToTable("Sas_H_ForumCategory", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Forum.ForumPost", b =>
@ -10260,7 +10260,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("TopicId");
b.ToTable("Sas_P_ForumPost", (string)null);
b.ToTable("Sas_H_ForumPost", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Forum.ForumTopic", b =>
@ -10359,7 +10359,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("LastPostDate");
b.ToTable("Sas_P_ForumTopic", (string)null);
b.ToTable("Sas_H_ForumTopic", (string)null);
});
modelBuilder.Entity("Kurs.Settings.Entities.SettingDefinition", b =>
@ -10456,7 +10456,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Plat_P_SettingDefinition", (string)null);
b.ToTable("Plat_H_SettingDefinition", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>

View file

@ -1526,7 +1526,7 @@ namespace Kurs.Platform.Migrations
});
migrationBuilder.CreateTable(
name: "Plat_P_AiBot",
name: "Plat_H_AiBot",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -1534,11 +1534,11 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Plat_P_AiBot", x => x.Id);
table.PrimaryKey("PK_Plat_H_AiBot", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Plat_P_BackgroundWorker",
name: "Plat_H_BackgroundWorker",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -1560,11 +1560,11 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Plat_P_BackgroundWorker", x => x.Id);
table.PrimaryKey("PK_Plat_H_BackgroundWorker", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Plat_P_BackgroundWorker_MailQueueTableFormat",
name: "Plat_H_BackgroundWorker_MailQueueTableFormat",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
@ -1585,12 +1585,12 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Plat_P_BackgroundWorker_MailQueueTableFormat", x => x.Id);
table.UniqueConstraint("AK_Plat_P_BackgroundWorker_MailQueueTableFormat_TableName", x => x.TableName);
table.PrimaryKey("PK_Plat_H_BackgroundWorker_MailQueueTableFormat", x => x.Id);
table.UniqueConstraint("AK_Plat_H_BackgroundWorker_MailQueueTableFormat_TableName", x => x.TableName);
});
migrationBuilder.CreateTable(
name: "Plat_P_Language",
name: "Plat_H_Language",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -1609,12 +1609,12 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Plat_P_Language", x => x.Id);
table.UniqueConstraint("AK_Plat_P_Language_CultureName", x => x.CultureName);
table.PrimaryKey("PK_Plat_H_Language", x => x.Id);
table.UniqueConstraint("AK_Plat_H_Language_CultureName", x => x.CultureName);
});
migrationBuilder.CreateTable(
name: "Plat_P_LanguageKey",
name: "Plat_H_LanguageKey",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -1630,12 +1630,12 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Plat_P_LanguageKey", x => x.Id);
table.UniqueConstraint("AK_Plat_P_LanguageKey_ResourceName_Key", x => new { x.ResourceName, x.Key });
table.PrimaryKey("PK_Plat_H_LanguageKey", x => x.Id);
table.UniqueConstraint("AK_Plat_H_LanguageKey_ResourceName_Key", x => new { x.ResourceName, x.Key });
});
migrationBuilder.CreateTable(
name: "Plat_P_NotificationRule",
name: "Plat_H_NotificationRule",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -1656,11 +1656,11 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Plat_P_NotificationRule", x => x.Id);
table.PrimaryKey("PK_Plat_H_NotificationRule", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Plat_P_SettingDefinition",
name: "Plat_H_SettingDefinition",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -1688,7 +1688,7 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Plat_P_SettingDefinition", x => x.Id);
table.PrimaryKey("PK_Plat_H_SettingDefinition", x => x.Id);
});
migrationBuilder.CreateTable(
@ -1820,7 +1820,7 @@ namespace Kurs.Platform.Migrations
});
migrationBuilder.CreateTable(
name: "Sas_P_ContactTag",
name: "Sas_H_ContactTag",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -1836,11 +1836,11 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_ContactTag", x => x.Id);
table.PrimaryKey("PK_Sas_H_ContactTag", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Sas_P_ContactTitle",
name: "Sas_H_ContactTitle",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -1856,11 +1856,11 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_ContactTitle", x => x.Id);
table.PrimaryKey("PK_Sas_H_ContactTitle", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Sas_P_CountryGroup",
name: "Sas_H_CountryGroup",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -1875,12 +1875,12 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_CountryGroup", x => x.Id);
table.UniqueConstraint("AK_Sas_P_CountryGroup_Name", x => x.Name);
table.PrimaryKey("PK_Sas_H_CountryGroup", x => x.Id);
table.UniqueConstraint("AK_Sas_H_CountryGroup_Name", x => x.Name);
});
migrationBuilder.CreateTable(
name: "Sas_P_Currency",
name: "Sas_H_Currency",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -1900,11 +1900,11 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_Currency", x => x.Id);
table.PrimaryKey("PK_Sas_H_Currency", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Sas_P_DataSource",
name: "Sas_H_DataSource",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -1921,11 +1921,11 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_DataSource", x => x.Id);
table.PrimaryKey("PK_Sas_H_DataSource", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Sas_P_ForumCategory",
name: "Sas_H_ForumCategory",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -1953,11 +1953,11 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_ForumCategory", x => x.Id);
table.PrimaryKey("PK_Sas_H_ForumCategory", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Sas_P_ListForm",
name: "Sas_H_ListForm",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -2049,12 +2049,12 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_ListForm", x => x.Id);
table.UniqueConstraint("AK_Sas_P_ListForm_ListFormCode", x => x.ListFormCode);
table.PrimaryKey("PK_Sas_H_ListForm", x => x.Id);
table.UniqueConstraint("AK_Sas_H_ListForm_ListFormCode", x => x.ListFormCode);
});
migrationBuilder.CreateTable(
name: "Sas_P_Menu",
name: "Sas_H_Menu",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -2082,11 +2082,11 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_Menu", x => x.Id);
table.PrimaryKey("PK_Sas_H_Menu", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Sas_P_Route",
name: "Sas_H_Route",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -2105,7 +2105,7 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_Route", x => x.Id);
table.PrimaryKey("PK_Sas_H_Route", x => x.Id);
});
migrationBuilder.CreateTable(
@ -3203,7 +3203,7 @@ namespace Kurs.Platform.Migrations
});
migrationBuilder.CreateTable(
name: "Plat_P_BackgroundWorker_MailQueue",
name: "Plat_H_BackgroundWorker_MailQueue",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3229,18 +3229,18 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Plat_P_BackgroundWorker_MailQueue", x => x.Id);
table.UniqueConstraint("AK_Plat_P_BackgroundWorker_MailQueue_AwsMessageId", x => x.AwsMessageId);
table.PrimaryKey("PK_Plat_H_BackgroundWorker_MailQueue", x => x.Id);
table.UniqueConstraint("AK_Plat_H_BackgroundWorker_MailQueue_AwsMessageId", x => x.AwsMessageId);
table.ForeignKey(
name: "FK_Plat_P_BackgroundWorker_MailQueue_Plat_P_BackgroundWorker_MailQueueTableFormat_TableName",
name: "FK_Plat_H_BackgroundWorker_MailQueue_Plat_H_BackgroundWorker_MailQueueTableFormat_TableName",
column: x => x.TableName,
principalTable: "Plat_P_BackgroundWorker_MailQueueTableFormat",
principalTable: "Plat_H_BackgroundWorker_MailQueueTableFormat",
principalColumn: "TableName",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "Plat_P_LanguageText",
name: "Plat_H_LanguageText",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3258,23 +3258,23 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Plat_P_LanguageText", x => x.Id);
table.PrimaryKey("PK_Plat_H_LanguageText", x => x.Id);
table.ForeignKey(
name: "FK_Plat_P_LanguageText_Plat_P_LanguageKey_ResourceName_Key",
name: "FK_Plat_H_LanguageText_Plat_H_LanguageKey_ResourceName_Key",
columns: x => new { x.ResourceName, x.Key },
principalTable: "Plat_P_LanguageKey",
principalTable: "Plat_H_LanguageKey",
principalColumns: new[] { "ResourceName", "Key" },
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_Plat_P_LanguageText_Plat_P_Language_CultureName",
name: "FK_Plat_H_LanguageText_Plat_H_Language_CultureName",
column: x => x.CultureName,
principalTable: "Plat_P_Language",
principalTable: "Plat_H_Language",
principalColumn: "CultureName",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "Plat_P_Notification",
name: "Plat_H_Notification",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3297,17 +3297,17 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Plat_P_Notification", x => x.Id);
table.PrimaryKey("PK_Plat_H_Notification", x => x.Id);
table.ForeignKey(
name: "FK_Plat_P_Notification_Plat_P_NotificationRule_NotificationRuleId",
name: "FK_Plat_H_Notification_Plat_H_NotificationRule_NotificationRuleId",
column: x => x.NotificationRuleId,
principalTable: "Plat_P_NotificationRule",
principalTable: "Plat_H_NotificationRule",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "Sas_P_Country",
name: "Sas_H_Country",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3329,17 +3329,17 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_Country", x => x.Id);
table.PrimaryKey("PK_Sas_H_Country", x => x.Id);
table.ForeignKey(
name: "FK_Sas_P_Country_Sas_P_CountryGroup_GroupName",
name: "FK_Sas_H_Country_Sas_H_CountryGroup_GroupName",
column: x => x.GroupName,
principalTable: "Sas_P_CountryGroup",
principalTable: "Sas_H_CountryGroup",
principalColumn: "Name",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "Sas_P_ForumTopic",
name: "Sas_H_ForumTopic",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3369,17 +3369,17 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_ForumTopic", x => x.Id);
table.PrimaryKey("PK_Sas_H_ForumTopic", x => x.Id);
table.ForeignKey(
name: "FK_Sas_P_ForumTopic_Sas_P_ForumCategory_CategoryId",
name: "FK_Sas_H_ForumTopic_Sas_H_ForumCategory_CategoryId",
column: x => x.CategoryId,
principalTable: "Sas_P_ForumCategory",
principalTable: "Sas_H_ForumCategory",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "Sas_P_ListFormCustomization",
name: "Sas_H_ListFormCustomization",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3399,17 +3399,17 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_ListFormCustomization", x => x.Id);
table.PrimaryKey("PK_Sas_H_ListFormCustomization", x => x.Id);
table.ForeignKey(
name: "FK_Sas_P_ListFormCustomization_Sas_P_ListForm_ListFormCode",
name: "FK_Sas_H_ListFormCustomization_Sas_H_ListForm_ListFormCode",
column: x => x.ListFormCode,
principalTable: "Sas_P_ListForm",
principalTable: "Sas_H_ListForm",
principalColumn: "ListFormCode",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "Sas_P_ListFormField",
name: "Sas_H_ListFormField",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3456,17 +3456,17 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_ListFormField", x => x.Id);
table.PrimaryKey("PK_Sas_H_ListFormField", x => x.Id);
table.ForeignKey(
name: "FK_Sas_P_ListFormField_Sas_P_ListForm_ListFormCode",
name: "FK_Sas_H_ListFormField_Sas_H_ListForm_ListFormCode",
column: x => x.ListFormCode,
principalTable: "Sas_P_ListForm",
principalTable: "Sas_H_ListForm",
principalColumn: "ListFormCode",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "Sas_P_ListFormImport",
name: "Sas_H_ListFormImport",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3484,11 +3484,11 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_ListFormImport", x => x.Id);
table.PrimaryKey("PK_Sas_H_ListFormImport", x => x.Id);
table.ForeignKey(
name: "FK_Sas_P_ListFormImport_Sas_P_ListForm_ListFormCode",
name: "FK_Sas_H_ListFormImport_Sas_H_ListForm_ListFormCode",
column: x => x.ListFormCode,
principalTable: "Sas_P_ListForm",
principalTable: "Sas_H_ListForm",
principalColumn: "ListFormCode",
onDelete: ReferentialAction.Cascade);
});
@ -3795,7 +3795,7 @@ namespace Kurs.Platform.Migrations
});
migrationBuilder.CreateTable(
name: "Plat_P_BackgroundWorker_MailQueueEvents",
name: "Plat_H_BackgroundWorker_MailQueueEvents",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3814,17 +3814,17 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Plat_P_BackgroundWorker_MailQueueEvents", x => x.Id);
table.PrimaryKey("PK_Plat_H_BackgroundWorker_MailQueueEvents", x => x.Id);
table.ForeignKey(
name: "FK_Plat_P_BackgroundWorker_MailQueueEvents_Plat_P_BackgroundWorker_MailQueue_AwsMessageId",
name: "FK_Plat_H_BackgroundWorker_MailQueueEvents_Plat_H_BackgroundWorker_MailQueue_AwsMessageId",
column: x => x.AwsMessageId,
principalTable: "Plat_P_BackgroundWorker_MailQueue",
principalTable: "Plat_H_BackgroundWorker_MailQueue",
principalColumn: "AwsMessageId",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "Sas_P_City",
name: "Sas_H_City",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3843,16 +3843,16 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_City", x => x.Id);
table.PrimaryKey("PK_Sas_H_City", x => x.Id);
table.ForeignKey(
name: "FK_Sas_P_City_Sas_P_Country_CountryId",
name: "FK_Sas_H_City_Sas_H_Country_CountryId",
column: x => x.CountryId,
principalTable: "Sas_P_Country",
principalTable: "Sas_H_Country",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "Sas_P_ForumPost",
name: "Sas_H_ForumPost",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3874,23 +3874,23 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_ForumPost", x => x.Id);
table.PrimaryKey("PK_Sas_H_ForumPost", x => x.Id);
table.ForeignKey(
name: "FK_Sas_P_ForumPost_Sas_P_ForumPost_ParentPostId",
name: "FK_Sas_H_ForumPost_Sas_H_ForumPost_ParentPostId",
column: x => x.ParentPostId,
principalTable: "Sas_P_ForumPost",
principalTable: "Sas_H_ForumPost",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_Sas_P_ForumPost_Sas_P_ForumTopic_TopicId",
name: "FK_Sas_H_ForumPost_Sas_H_ForumTopic_TopicId",
column: x => x.TopicId,
principalTable: "Sas_P_ForumTopic",
principalTable: "Sas_H_ForumTopic",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "Sas_P_ListFormImportExecute",
name: "Sas_H_ListFormImportExecute",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3912,11 +3912,11 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_ListFormImportExecute", x => x.Id);
table.PrimaryKey("PK_Sas_H_ListFormImportExecute", x => x.Id);
table.ForeignKey(
name: "FK_Sas_P_ListFormImportExecute_Sas_P_ListFormImport_ImportId",
name: "FK_Sas_H_ListFormImportExecute_Sas_H_ListFormImport_ImportId",
column: x => x.ImportId,
principalTable: "Sas_P_ListFormImport",
principalTable: "Sas_H_ListFormImport",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
@ -3983,7 +3983,7 @@ namespace Kurs.Platform.Migrations
});
migrationBuilder.CreateTable(
name: "Sas_P_District",
name: "Sas_H_District",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -4004,11 +4004,11 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_Sas_P_District", x => x.Id);
table.PrimaryKey("PK_Sas_H_District", x => x.Id);
table.ForeignKey(
name: "FK_Sas_P_District_Sas_P_City_CityId",
name: "FK_Sas_H_District_Sas_H_City_CityId",
column: x => x.CityId,
principalTable: "Sas_P_City",
principalTable: "Sas_H_City",
principalColumn: "Id");
});
@ -4080,9 +4080,9 @@ namespace Kurs.Platform.Migrations
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_Adm_T_Partner_Sas_P_Currency_CurrencyId",
name: "FK_Adm_T_Partner_Sas_H_Currency_CurrencyId",
column: x => x.CurrencyId,
principalTable: "Sas_P_Currency",
principalTable: "Sas_H_Currency",
principalColumn: "Id");
table.ForeignKey(
name: "FK_Adm_T_Partner_Sas_T_Sector_SectorId",
@ -4146,9 +4146,9 @@ namespace Kurs.Platform.Migrations
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_Adm_T_PartnerBank_Sas_P_Currency_CurrencyId",
name: "FK_Adm_T_PartnerBank_Sas_H_Currency_CurrencyId",
column: x => x.CurrencyId,
principalTable: "Sas_P_Currency",
principalTable: "Sas_H_Currency",
principalColumn: "Id");
});
@ -5743,136 +5743,136 @@ namespace Kurs.Platform.Migrations
column: "ReferenceId");
migrationBuilder.CreateIndex(
name: "IX_Plat_P_BackgroundWorker_MailQueue_TableName",
table: "Plat_P_BackgroundWorker_MailQueue",
name: "IX_Plat_H_BackgroundWorker_MailQueue_TableName",
table: "Plat_H_BackgroundWorker_MailQueue",
column: "TableName");
migrationBuilder.CreateIndex(
name: "IX_Plat_P_BackgroundWorker_MailQueueEvents_AwsMessageId",
table: "Plat_P_BackgroundWorker_MailQueueEvents",
name: "IX_Plat_H_BackgroundWorker_MailQueueEvents_AwsMessageId",
table: "Plat_H_BackgroundWorker_MailQueueEvents",
column: "AwsMessageId");
migrationBuilder.CreateIndex(
name: "IX_MailQueueTableFormat",
table: "Plat_P_BackgroundWorker_MailQueueTableFormat",
table: "Plat_H_BackgroundWorker_MailQueueTableFormat",
columns: new[] { "TableName", "Order" },
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Plat_P_LanguageKey_ResourceName_Key",
table: "Plat_P_LanguageKey",
name: "IX_Plat_H_LanguageKey_ResourceName_Key",
table: "Plat_H_LanguageKey",
columns: new[] { "ResourceName", "Key" },
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Plat_P_LanguageText_CultureName",
table: "Plat_P_LanguageText",
name: "IX_Plat_H_LanguageText_CultureName",
table: "Plat_H_LanguageText",
column: "CultureName");
migrationBuilder.CreateIndex(
name: "IX_Plat_P_LanguageText_ResourceName_Key",
table: "Plat_P_LanguageText",
name: "IX_Plat_H_LanguageText_ResourceName_Key",
table: "Plat_H_LanguageText",
columns: new[] { "ResourceName", "Key" });
migrationBuilder.CreateIndex(
name: "IX_Plat_P_Notification_NotificationRuleId",
table: "Plat_P_Notification",
name: "IX_Plat_H_Notification_NotificationRuleId",
table: "Plat_H_Notification",
column: "NotificationRuleId");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_City_Country_Code",
table: "Sas_P_City",
name: "IX_Sas_H_City_Country_Code",
table: "Sas_H_City",
columns: new[] { "Country", "Code" },
unique: true,
filter: "[Country] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_City_CountryId",
table: "Sas_P_City",
name: "IX_Sas_H_City_CountryId",
table: "Sas_H_City",
column: "CountryId");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_Country_Code",
table: "Sas_P_Country",
name: "IX_Sas_H_Country_Code",
table: "Sas_H_Country",
column: "Code",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Sas_P_Country_GroupName",
table: "Sas_P_Country",
name: "IX_Sas_H_Country_GroupName",
table: "Sas_H_Country",
column: "GroupName");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_CountryGroup_Name",
table: "Sas_P_CountryGroup",
name: "IX_Sas_H_CountryGroup_Name",
table: "Sas_H_CountryGroup",
column: "Name",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Sas_P_District_CityId",
table: "Sas_P_District",
name: "IX_Sas_H_District_CityId",
table: "Sas_H_District",
column: "CityId");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_District_Country_City_Name_Township_Street_ZipCode",
table: "Sas_P_District",
name: "IX_Sas_H_District_Country_City_Name_Township_Street_ZipCode",
table: "Sas_H_District",
columns: new[] { "Country", "City", "Name", "Township", "Street", "ZipCode" },
unique: true,
filter: "[Country] IS NOT NULL AND [Township] IS NOT NULL AND [Street] IS NOT NULL AND [ZipCode] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_ForumCategory_DisplayOrder",
table: "Sas_P_ForumCategory",
name: "IX_Sas_H_ForumCategory_DisplayOrder",
table: "Sas_H_ForumCategory",
column: "DisplayOrder");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_ForumPost_ParentPostId",
table: "Sas_P_ForumPost",
name: "IX_Sas_H_ForumPost_ParentPostId",
table: "Sas_H_ForumPost",
column: "ParentPostId");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_ForumPost_TopicId",
table: "Sas_P_ForumPost",
name: "IX_Sas_H_ForumPost_TopicId",
table: "Sas_H_ForumPost",
column: "TopicId");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_ForumTopic_CategoryId",
table: "Sas_P_ForumTopic",
name: "IX_Sas_H_ForumTopic_CategoryId",
table: "Sas_H_ForumTopic",
column: "CategoryId");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_ForumTopic_IsPinned",
table: "Sas_P_ForumTopic",
name: "IX_Sas_H_ForumTopic_IsPinned",
table: "Sas_H_ForumTopic",
column: "IsPinned");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_ForumTopic_LastPostDate",
table: "Sas_P_ForumTopic",
name: "IX_Sas_H_ForumTopic_LastPostDate",
table: "Sas_H_ForumTopic",
column: "LastPostDate");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_ListFormCustomization_ListFormCode",
table: "Sas_P_ListFormCustomization",
name: "IX_Sas_H_ListFormCustomization_ListFormCode",
table: "Sas_H_ListFormCustomization",
column: "ListFormCode");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_ListFormField_ListFormCode",
table: "Sas_P_ListFormField",
name: "IX_Sas_H_ListFormField_ListFormCode",
table: "Sas_H_ListFormField",
column: "ListFormCode");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_ListFormImport_ListFormCode",
table: "Sas_P_ListFormImport",
name: "IX_Sas_H_ListFormImport_ListFormCode",
table: "Sas_H_ListFormImport",
column: "ListFormCode");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_ListFormImportExecute_ImportId",
table: "Sas_P_ListFormImportExecute",
name: "IX_Sas_H_ListFormImportExecute_ImportId",
table: "Sas_H_ListFormImportExecute",
column: "ImportId");
migrationBuilder.CreateIndex(
name: "IX_Sas_P_Route_Key",
table: "Sas_P_Route",
name: "IX_Sas_H_Route_Key",
table: "Sas_H_Route",
column: "Key",
unique: true);
@ -6205,22 +6205,22 @@ namespace Kurs.Platform.Migrations
name: "OpenIddictTokens");
migrationBuilder.DropTable(
name: "Plat_P_AiBot");
name: "Plat_H_AiBot");
migrationBuilder.DropTable(
name: "Plat_P_BackgroundWorker");
name: "Plat_H_BackgroundWorker");
migrationBuilder.DropTable(
name: "Plat_P_BackgroundWorker_MailQueueEvents");
name: "Plat_H_BackgroundWorker_MailQueueEvents");
migrationBuilder.DropTable(
name: "Plat_P_LanguageText");
name: "Plat_H_LanguageText");
migrationBuilder.DropTable(
name: "Plat_P_Notification");
name: "Plat_H_Notification");
migrationBuilder.DropTable(
name: "Plat_P_SettingDefinition");
name: "Plat_H_SettingDefinition");
migrationBuilder.DropTable(
name: "Prt_T_Interesting");
@ -6241,34 +6241,34 @@ namespace Kurs.Platform.Migrations
name: "Prt_T_Source");
migrationBuilder.DropTable(
name: "Sas_P_ContactTag");
name: "Sas_H_ContactTag");
migrationBuilder.DropTable(
name: "Sas_P_ContactTitle");
name: "Sas_H_ContactTitle");
migrationBuilder.DropTable(
name: "Sas_P_DataSource");
name: "Sas_H_DataSource");
migrationBuilder.DropTable(
name: "Sas_P_District");
name: "Sas_H_District");
migrationBuilder.DropTable(
name: "Sas_P_ForumPost");
name: "Sas_H_ForumPost");
migrationBuilder.DropTable(
name: "Sas_P_ListFormCustomization");
name: "Sas_H_ListFormCustomization");
migrationBuilder.DropTable(
name: "Sas_P_ListFormField");
name: "Sas_H_ListFormField");
migrationBuilder.DropTable(
name: "Sas_P_ListFormImportExecute");
name: "Sas_H_ListFormImportExecute");
migrationBuilder.DropTable(
name: "Sas_P_Menu");
name: "Sas_H_Menu");
migrationBuilder.DropTable(
name: "Sas_P_Route");
name: "Sas_H_Route");
migrationBuilder.DropTable(
name: "Sas_T_Activity");
@ -6379,25 +6379,25 @@ namespace Kurs.Platform.Migrations
name: "OpenIddictAuthorizations");
migrationBuilder.DropTable(
name: "Plat_P_BackgroundWorker_MailQueue");
name: "Plat_H_BackgroundWorker_MailQueue");
migrationBuilder.DropTable(
name: "Plat_P_LanguageKey");
name: "Plat_H_LanguageKey");
migrationBuilder.DropTable(
name: "Plat_P_Language");
name: "Plat_H_Language");
migrationBuilder.DropTable(
name: "Plat_P_NotificationRule");
name: "Plat_H_NotificationRule");
migrationBuilder.DropTable(
name: "Sas_P_City");
name: "Sas_H_City");
migrationBuilder.DropTable(
name: "Sas_P_ForumTopic");
name: "Sas_H_ForumTopic");
migrationBuilder.DropTable(
name: "Sas_P_ListFormImport");
name: "Sas_H_ListFormImport");
migrationBuilder.DropTable(
name: "Sas_T_CustomEntity");
@ -6415,7 +6415,7 @@ namespace Kurs.Platform.Migrations
name: "Crm_T_CustomerType");
migrationBuilder.DropTable(
name: "Sas_P_Currency");
name: "Sas_H_Currency");
migrationBuilder.DropTable(
name: "Sas_T_Sector");
@ -6451,22 +6451,22 @@ namespace Kurs.Platform.Migrations
name: "OpenIddictApplications");
migrationBuilder.DropTable(
name: "Plat_P_BackgroundWorker_MailQueueTableFormat");
name: "Plat_H_BackgroundWorker_MailQueueTableFormat");
migrationBuilder.DropTable(
name: "Sas_P_Country");
name: "Sas_H_Country");
migrationBuilder.DropTable(
name: "Sas_P_ForumCategory");
name: "Sas_H_ForumCategory");
migrationBuilder.DropTable(
name: "Sas_P_ListForm");
name: "Sas_H_ListForm");
migrationBuilder.DropTable(
name: "Sas_T_ReportCategory");
migrationBuilder.DropTable(
name: "Sas_P_CountryGroup");
name: "Sas_H_CountryGroup");
migrationBuilder.DropTable(
name: "Acc_T_Bank");

View file

@ -83,7 +83,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Plat_P_Language", (string)null);
b.ToTable("Plat_H_Language", (string)null);
});
modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", b =>
@ -137,7 +137,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ResourceName", "Key")
.IsUnique();
b.ToTable("Plat_P_LanguageKey", (string)null);
b.ToTable("Plat_H_LanguageKey", (string)null);
});
modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b =>
@ -200,7 +200,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ResourceName", "Key");
b.ToTable("Plat_P_LanguageText", (string)null);
b.ToTable("Plat_H_LanguageText", (string)null);
});
modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueue", b =>
@ -291,7 +291,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("TableName");
b.ToTable("Plat_P_BackgroundWorker_MailQueue", (string)null);
b.ToTable("Plat_H_BackgroundWorker_MailQueue", (string)null);
});
modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueEvents", b =>
@ -353,7 +353,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("AwsMessageId");
b.ToTable("Plat_P_BackgroundWorker_MailQueueEvents", (string)null);
b.ToTable("Plat_H_BackgroundWorker_MailQueueEvents", (string)null);
});
modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueTableFormat", b =>
@ -419,7 +419,7 @@ namespace Kurs.Platform.Migrations
.IsUnique()
.HasDatabaseName("IX_MailQueueTableFormat");
b.ToTable("Plat_P_BackgroundWorker_MailQueueTableFormat", (string)null);
b.ToTable("Plat_H_BackgroundWorker_MailQueueTableFormat", (string)null);
});
modelBuilder.Entity("Kurs.Notifications.Entities.Notification", b =>
@ -497,7 +497,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("NotificationRuleId");
b.ToTable("Plat_P_Notification", (string)null);
b.ToTable("Plat_H_Notification", (string)null);
});
modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b =>
@ -566,7 +566,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Plat_P_NotificationRule", (string)null);
b.ToTable("Plat_H_NotificationRule", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.About", b =>
@ -701,7 +701,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Plat_P_AiBot", (string)null);
b.ToTable("Plat_H_AiBot", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.Announcement", b =>
@ -1006,7 +1006,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Plat_P_BackgroundWorker", (string)null);
b.ToTable("Plat_H_BackgroundWorker", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.Badge", b =>
@ -1750,7 +1750,7 @@ namespace Kurs.Platform.Migrations
.IsUnique()
.HasFilter("[Country] IS NOT NULL");
b.ToTable("Sas_P_City", (string)null);
b.ToTable("Sas_H_City", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.Class", b =>
@ -2401,7 +2401,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Sas_P_ContactTag", (string)null);
b.ToTable("Sas_H_ContactTag", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.ContactTitle", b =>
@ -2450,7 +2450,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Sas_P_ContactTitle", (string)null);
b.ToTable("Sas_H_ContactTitle", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.CostCenter", b =>
@ -2621,7 +2621,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("GroupName");
b.ToTable("Sas_P_Country", (string)null);
b.ToTable("Sas_H_Country", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.CountryGroup", b =>
@ -2669,7 +2669,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("Name")
.IsUnique();
b.ToTable("Sas_P_CountryGroup", (string)null);
b.ToTable("Sas_H_CountryGroup", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.Currency", b =>
@ -2735,7 +2735,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Sas_P_Currency", (string)null);
b.ToTable("Sas_H_Currency", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.CustomComponent", b =>
@ -3209,7 +3209,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Sas_P_DataSource", (string)null);
b.ToTable("Sas_H_DataSource", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.Demo", b =>
@ -3497,7 +3497,7 @@ namespace Kurs.Platform.Migrations
.IsUnique()
.HasFilter("[Country] IS NOT NULL AND [Township] IS NOT NULL AND [Street] IS NOT NULL AND [ZipCode] IS NOT NULL");
b.ToTable("Sas_P_District", (string)null);
b.ToTable("Sas_H_District", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.Document", b =>
@ -5141,7 +5141,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Sas_P_ListForm", (string)null);
b.ToTable("Sas_H_ListForm", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.ListFormCustomization", b =>
@ -5206,7 +5206,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ListFormCode");
b.ToTable("Sas_P_ListFormCustomization", (string)null);
b.ToTable("Sas_H_ListFormCustomization", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.ListFormField", b =>
@ -5373,7 +5373,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ListFormCode");
b.ToTable("Sas_P_ListFormField", (string)null);
b.ToTable("Sas_H_ListFormField", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.ListFormImport", b =>
@ -5433,7 +5433,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ListFormCode");
b.ToTable("Sas_P_ListFormImport", (string)null);
b.ToTable("Sas_H_ListFormImport", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.ListFormImportExecute", b =>
@ -5503,7 +5503,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ImportId");
b.ToTable("Sas_P_ListFormImportExecute", (string)null);
b.ToTable("Sas_H_ListFormImportExecute", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.MaterialGroup", b =>
@ -5908,7 +5908,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Sas_P_Menu", (string)null);
b.ToTable("Sas_H_Menu", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.NoteType", b =>
@ -8051,7 +8051,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("Key")
.IsUnique();
b.ToTable("Sas_P_Route", (string)null);
b.ToTable("Sas_H_Route", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.SalesRejectionReason", b =>
@ -10187,7 +10187,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("DisplayOrder");
b.ToTable("Sas_P_ForumCategory", (string)null);
b.ToTable("Sas_H_ForumCategory", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Forum.ForumPost", b =>
@ -10257,7 +10257,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("TopicId");
b.ToTable("Sas_P_ForumPost", (string)null);
b.ToTable("Sas_H_ForumPost", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Forum.ForumTopic", b =>
@ -10356,7 +10356,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("LastPostDate");
b.ToTable("Sas_P_ForumTopic", (string)null);
b.ToTable("Sas_H_ForumTopic", (string)null);
});
modelBuilder.Entity("Kurs.Settings.Entities.SettingDefinition", b =>
@ -10453,7 +10453,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
b.ToTable("Plat_P_SettingDefinition", (string)null);
b.ToTable("Plat_H_SettingDefinition", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>