diff --git a/api/modules/Kurs.Languages/Kurs.Languages.Domain/LanguagesDbProperties.cs b/api/modules/Kurs.Languages/Kurs.Languages.Domain/LanguagesDbProperties.cs
index 379223a1..fed9db28 100644
--- a/api/modules/Kurs.Languages/Kurs.Languages.Domain/LanguagesDbProperties.cs
+++ b/api/modules/Kurs.Languages/Kurs.Languages.Domain/LanguagesDbProperties.cs
@@ -2,7 +2,7 @@
public static class Prefix
{
- public static string DbTablePlatform { get; set; } = "P";
+ public static string DbTablePlatform { get; set; } = "Plat";
public static string MenuPlatform { get; set; } = "P";
public static string? DbSchema { get; set; } = null;
diff --git a/api/modules/Kurs.MailQueue/Domain/MailQueueDbProperties.cs b/api/modules/Kurs.MailQueue/Domain/MailQueueDbProperties.cs
index bb9e148b..cb6c3b9b 100644
--- a/api/modules/Kurs.MailQueue/Domain/MailQueueDbProperties.cs
+++ b/api/modules/Kurs.MailQueue/Domain/MailQueueDbProperties.cs
@@ -2,7 +2,7 @@
public static class Prefix
{
- public static string DbTablePlatform { get; set; } = "P";
+ public static string DbTablePlatform { get; set; } = "Plat";
public static string MenuPlatform { get; set; } = "P";
public static string? DbSchema { get; set; } = null;
diff --git a/api/modules/Kurs.Notifications/Kurs.Notifications.Domain/NotificationDbProperties.cs b/api/modules/Kurs.Notifications/Kurs.Notifications.Domain/NotificationDbProperties.cs
index 4909b434..b6e1e030 100644
--- a/api/modules/Kurs.Notifications/Kurs.Notifications.Domain/NotificationDbProperties.cs
+++ b/api/modules/Kurs.Notifications/Kurs.Notifications.Domain/NotificationDbProperties.cs
@@ -2,7 +2,7 @@
public static class Prefix
{
- public static string DbTablePlatform { get; set; } = "P";
+ public static string DbTablePlatform { get; set; } = "Plat";
public static string MenuPlatform { get; set; } = "P";
public static string? DbSchema { get; set; } = null;
diff --git a/api/modules/Kurs.Settings/Kurs.Settings.Domain/SettingsDbProperties.cs b/api/modules/Kurs.Settings/Kurs.Settings.Domain/SettingsDbProperties.cs
index dfbac43d..00e7e524 100644
--- a/api/modules/Kurs.Settings/Kurs.Settings.Domain/SettingsDbProperties.cs
+++ b/api/modules/Kurs.Settings/Kurs.Settings.Domain/SettingsDbProperties.cs
@@ -2,7 +2,7 @@
public static class Prefix
{
- public static string DbTablePlatform { get; set; } = "P";
+ public static string DbTablePlatform { get; set; } = "Plat";
public static string MenuPlatform { get; set; } = "P";
public static string? DbSchema { get; set; } = null;
diff --git a/api/src/Kurs.Platform.Domain.Shared/TableNameResolver.cs b/api/src/Kurs.Platform.Domain.Shared/TableNameResolver.cs
index ccee22e4..9c5d4384 100644
--- a/api/src/Kurs.Platform.Domain.Shared/TableNameResolver.cs
+++ b/api/src/Kurs.Platform.Domain.Shared/TableNameResolver.cs
@@ -12,6 +12,7 @@ public static class TableNameResolver
_map = new(StringComparer.OrdinalIgnoreCase)
{
// 🔹 MODULE TABLOLARI
+ { nameof(TableNameEnum.LogEntry), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
{ nameof(TableNameEnum.Language), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
{ nameof(TableNameEnum.LanguageKey), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
{ nameof(TableNameEnum.LanguageText), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101080853_Initial.Designer.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101082915_Initial.Designer.cs
similarity index 99%
rename from api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101080853_Initial.Designer.cs
rename to api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101082915_Initial.Designer.cs
index efdceb64..24a360bf 100644
--- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101080853_Initial.Designer.cs
+++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101082915_Initial.Designer.cs
@@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
namespace Kurs.Platform.Migrations
{
[DbContext(typeof(PlatformDbContext))]
- [Migration("20251101080853_Initial")]
+ [Migration("20251101082915_Initial")]
partial class Initial
{
///
@@ -86,7 +86,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
- b.ToTable("P_P_Language", (string)null);
+ b.ToTable("Plat_P_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("P_P_LanguageKey", (string)null);
+ b.ToTable("Plat_P_LanguageKey", (string)null);
});
modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b =>
@@ -203,7 +203,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ResourceName", "Key");
- b.ToTable("P_P_LanguageText", (string)null);
+ b.ToTable("Plat_P_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("P_P_BackgroundWorker_MailQueue", (string)null);
+ b.ToTable("Plat_P_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("P_P_BackgroundWorker_MailQueueEvents", (string)null);
+ b.ToTable("Plat_P_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("P_P_BackgroundWorker_MailQueueTableFormat", (string)null);
+ b.ToTable("Plat_P_BackgroundWorker_MailQueueTableFormat", (string)null);
});
modelBuilder.Entity("Kurs.Notifications.Entities.Notification", b =>
@@ -500,7 +500,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("NotificationRuleId");
- b.ToTable("P_P_Notification", (string)null);
+ b.ToTable("Plat_P_Notification", (string)null);
});
modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b =>
@@ -569,7 +569,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
- b.ToTable("P_P_NotificationRule", (string)null);
+ b.ToTable("Plat_P_NotificationRule", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.About", b =>
@@ -10456,7 +10456,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
- b.ToTable("P_P_SettingDefinition", (string)null);
+ b.ToTable("Plat_P_SettingDefinition", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101080853_Initial.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101082915_Initial.cs
similarity index 99%
rename from api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101080853_Initial.cs
rename to api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101082915_Initial.cs
index 58f012da..e2c6cf5d 100644
--- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101080853_Initial.cs
+++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101082915_Initial.cs
@@ -1525,134 +1525,6 @@ namespace Kurs.Platform.Migrations
table.PrimaryKey("PK_OpenIddictScopes", x => x.Id);
});
- migrationBuilder.CreateTable(
- name: "P_P_BackgroundWorker_MailQueueTableFormat",
- columns: table => new
- {
- Id = table.Column(type: "int", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- TableName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false),
- Order = table.Column(type: "smallint", nullable: false),
- ColumnName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- Caption = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- HeaderCss = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
- Css = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
- FooterCss = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
- DataType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- DataFormat = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- IsHidden = table.Column(type: "bit", nullable: false),
- IsProtected = table.Column(type: "bit", nullable: false),
- SubTotal = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- Width = table.Column(type: "int", nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_P_P_BackgroundWorker_MailQueueTableFormat", x => x.Id);
- table.UniqueConstraint("AK_P_P_BackgroundWorker_MailQueueTableFormat_TableName", x => x.TableName);
- });
-
- migrationBuilder.CreateTable(
- name: "P_P_Language",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- CultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false),
- UiCultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false),
- DisplayName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
- IsEnabled = table.Column(type: "bit", nullable: false),
- TwoLetterISOLanguageName = table.Column(type: "nvarchar(max)", nullable: true),
- CreationTime = table.Column(type: "datetime2", nullable: false),
- CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
- LastModificationTime = table.Column(type: "datetime2", nullable: true),
- LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
- IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
- DeletionTime = table.Column(type: "datetime2", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_P_P_Language", x => x.Id);
- table.UniqueConstraint("AK_P_P_Language_CultureName", x => x.CultureName);
- });
-
- migrationBuilder.CreateTable(
- name: "P_P_LanguageKey",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- Key = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false),
- ResourceName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
- CreationTime = table.Column(type: "datetime2", nullable: false),
- CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
- LastModificationTime = table.Column(type: "datetime2", nullable: true),
- LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
- IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
- DeletionTime = table.Column(type: "datetime2", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_P_P_LanguageKey", x => x.Id);
- table.UniqueConstraint("AK_P_P_LanguageKey_ResourceName_Key", x => new { x.ResourceName, x.Key });
- });
-
- migrationBuilder.CreateTable(
- name: "P_P_NotificationRule",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- NotificationType = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false),
- RecipientType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
- RecipientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true),
- Channel = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
- IsActive = table.Column(type: "bit", nullable: false),
- IsFixed = table.Column(type: "bit", nullable: false),
- IsCustomized = table.Column(type: "bit", nullable: false),
- CreationTime = table.Column(type: "datetime2", nullable: false),
- CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
- LastModificationTime = table.Column(type: "datetime2", nullable: true),
- LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
- IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
- DeletionTime = table.Column(type: "datetime2", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_P_P_NotificationRule", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "P_P_SettingDefinition",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- NameKey = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- DescriptionKey = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true),
- DefaultValue = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true),
- IsVisibleToClients = table.Column(type: "bit", nullable: false),
- Providers = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- IsInherited = table.Column(type: "bit", nullable: false),
- IsEncrypted = table.Column(type: "bit", nullable: false),
- MainGroupKey = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- SubGroupKey = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true),
- RequiredPermissionName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
- DataType = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: false),
- SelectOptions = table.Column(type: "nvarchar(max)", nullable: true),
- Order = table.Column(type: "int", nullable: false),
- CreationTime = table.Column(type: "datetime2", nullable: false),
- CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
- LastModificationTime = table.Column(type: "datetime2", nullable: true),
- LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
- IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
- DeletionTime = table.Column(type: "datetime2", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_P_P_SettingDefinition", x => x.Id);
- });
-
migrationBuilder.CreateTable(
name: "Plat_P_AiBot",
columns: table => new
@@ -1691,6 +1563,134 @@ namespace Kurs.Platform.Migrations
table.PrimaryKey("PK_Plat_P_BackgroundWorker", x => x.Id);
});
+ migrationBuilder.CreateTable(
+ name: "Plat_P_BackgroundWorker_MailQueueTableFormat",
+ columns: table => new
+ {
+ Id = table.Column(type: "int", nullable: false)
+ .Annotation("SqlServer:Identity", "1, 1"),
+ TableName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false),
+ Order = table.Column(type: "smallint", nullable: false),
+ ColumnName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
+ Caption = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
+ HeaderCss = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
+ Css = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
+ FooterCss = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
+ DataType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
+ DataFormat = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
+ IsHidden = table.Column(type: "bit", nullable: false),
+ IsProtected = table.Column(type: "bit", nullable: false),
+ SubTotal = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
+ Width = table.Column(type: "int", nullable: false)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_Plat_P_BackgroundWorker_MailQueueTableFormat", x => x.Id);
+ table.UniqueConstraint("AK_Plat_P_BackgroundWorker_MailQueueTableFormat_TableName", x => x.TableName);
+ });
+
+ migrationBuilder.CreateTable(
+ name: "Plat_P_Language",
+ columns: table => new
+ {
+ Id = table.Column(type: "uniqueidentifier", nullable: false),
+ CultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false),
+ UiCultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false),
+ DisplayName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
+ IsEnabled = table.Column(type: "bit", nullable: false),
+ TwoLetterISOLanguageName = table.Column(type: "nvarchar(max)", nullable: true),
+ CreationTime = table.Column(type: "datetime2", nullable: false),
+ CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
+ LastModificationTime = table.Column(type: "datetime2", nullable: true),
+ LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
+ IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
+ DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
+ DeletionTime = table.Column(type: "datetime2", nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_Plat_P_Language", x => x.Id);
+ table.UniqueConstraint("AK_Plat_P_Language_CultureName", x => x.CultureName);
+ });
+
+ migrationBuilder.CreateTable(
+ name: "Plat_P_LanguageKey",
+ columns: table => new
+ {
+ Id = table.Column(type: "uniqueidentifier", nullable: false),
+ Key = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false),
+ ResourceName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
+ CreationTime = table.Column(type: "datetime2", nullable: false),
+ CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
+ LastModificationTime = table.Column(type: "datetime2", nullable: true),
+ LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
+ IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
+ DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
+ DeletionTime = table.Column(type: "datetime2", nullable: true)
+ },
+ 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 });
+ });
+
+ migrationBuilder.CreateTable(
+ name: "Plat_P_NotificationRule",
+ columns: table => new
+ {
+ Id = table.Column(type: "uniqueidentifier", nullable: false),
+ NotificationType = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false),
+ RecipientType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
+ RecipientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true),
+ Channel = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false),
+ IsActive = table.Column(type: "bit", nullable: false),
+ IsFixed = table.Column(type: "bit", nullable: false),
+ IsCustomized = table.Column(type: "bit", nullable: false),
+ CreationTime = table.Column(type: "datetime2", nullable: false),
+ CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
+ LastModificationTime = table.Column(type: "datetime2", nullable: true),
+ LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
+ IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
+ DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
+ DeletionTime = table.Column(type: "datetime2", nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_Plat_P_NotificationRule", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
+ name: "Plat_P_SettingDefinition",
+ columns: table => new
+ {
+ Id = table.Column(type: "uniqueidentifier", nullable: false),
+ Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
+ NameKey = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
+ DescriptionKey = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true),
+ DefaultValue = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true),
+ IsVisibleToClients = table.Column(type: "bit", nullable: false),
+ Providers = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
+ IsInherited = table.Column(type: "bit", nullable: false),
+ IsEncrypted = table.Column(type: "bit", nullable: false),
+ MainGroupKey = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
+ SubGroupKey = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true),
+ RequiredPermissionName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
+ DataType = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: false),
+ SelectOptions = table.Column(type: "nvarchar(max)", nullable: true),
+ Order = table.Column(type: "int", nullable: false),
+ CreationTime = table.Column(type: "datetime2", nullable: false),
+ CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
+ LastModificationTime = table.Column(type: "datetime2", nullable: true),
+ LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
+ IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
+ DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
+ DeletionTime = table.Column(type: "datetime2", nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_Plat_P_SettingDefinition", x => x.Id);
+ });
+
migrationBuilder.CreateTable(
name: "Prt_T_Interesting",
columns: table => new
@@ -3203,7 +3203,7 @@ namespace Kurs.Platform.Migrations
});
migrationBuilder.CreateTable(
- name: "P_P_BackgroundWorker_MailQueue",
+ name: "Plat_P_BackgroundWorker_MailQueue",
columns: table => new
{
Id = table.Column(type: "uniqueidentifier", nullable: false),
@@ -3229,18 +3229,18 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
- table.PrimaryKey("PK_P_P_BackgroundWorker_MailQueue", x => x.Id);
- table.UniqueConstraint("AK_P_P_BackgroundWorker_MailQueue_AwsMessageId", x => x.AwsMessageId);
+ table.PrimaryKey("PK_Plat_P_BackgroundWorker_MailQueue", x => x.Id);
+ table.UniqueConstraint("AK_Plat_P_BackgroundWorker_MailQueue_AwsMessageId", x => x.AwsMessageId);
table.ForeignKey(
- name: "FK_P_P_BackgroundWorker_MailQueue_P_P_BackgroundWorker_MailQueueTableFormat_TableName",
+ name: "FK_Plat_P_BackgroundWorker_MailQueue_Plat_P_BackgroundWorker_MailQueueTableFormat_TableName",
column: x => x.TableName,
- principalTable: "P_P_BackgroundWorker_MailQueueTableFormat",
+ principalTable: "Plat_P_BackgroundWorker_MailQueueTableFormat",
principalColumn: "TableName",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
- name: "P_P_LanguageText",
+ name: "Plat_P_LanguageText",
columns: table => new
{
Id = table.Column(type: "uniqueidentifier", nullable: false),
@@ -3258,23 +3258,23 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
- table.PrimaryKey("PK_P_P_LanguageText", x => x.Id);
+ table.PrimaryKey("PK_Plat_P_LanguageText", x => x.Id);
table.ForeignKey(
- name: "FK_P_P_LanguageText_P_P_LanguageKey_ResourceName_Key",
+ name: "FK_Plat_P_LanguageText_Plat_P_LanguageKey_ResourceName_Key",
columns: x => new { x.ResourceName, x.Key },
- principalTable: "P_P_LanguageKey",
+ principalTable: "Plat_P_LanguageKey",
principalColumns: new[] { "ResourceName", "Key" },
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
- name: "FK_P_P_LanguageText_P_P_Language_CultureName",
+ name: "FK_Plat_P_LanguageText_Plat_P_Language_CultureName",
column: x => x.CultureName,
- principalTable: "P_P_Language",
+ principalTable: "Plat_P_Language",
principalColumn: "CultureName",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
- name: "P_P_Notification",
+ name: "Plat_P_Notification",
columns: table => new
{
Id = table.Column(type: "uniqueidentifier", nullable: false),
@@ -3297,11 +3297,11 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
- table.PrimaryKey("PK_P_P_Notification", x => x.Id);
+ table.PrimaryKey("PK_Plat_P_Notification", x => x.Id);
table.ForeignKey(
- name: "FK_P_P_Notification_P_P_NotificationRule_NotificationRuleId",
+ name: "FK_Plat_P_Notification_Plat_P_NotificationRule_NotificationRuleId",
column: x => x.NotificationRuleId,
- principalTable: "P_P_NotificationRule",
+ principalTable: "Plat_P_NotificationRule",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
@@ -3795,7 +3795,7 @@ namespace Kurs.Platform.Migrations
});
migrationBuilder.CreateTable(
- name: "P_P_BackgroundWorker_MailQueueEvents",
+ name: "Plat_P_BackgroundWorker_MailQueueEvents",
columns: table => new
{
Id = table.Column(type: "uniqueidentifier", nullable: false),
@@ -3814,11 +3814,11 @@ namespace Kurs.Platform.Migrations
},
constraints: table =>
{
- table.PrimaryKey("PK_P_P_BackgroundWorker_MailQueueEvents", x => x.Id);
+ table.PrimaryKey("PK_Plat_P_BackgroundWorker_MailQueueEvents", x => x.Id);
table.ForeignKey(
- name: "FK_P_P_BackgroundWorker_MailQueueEvents_P_P_BackgroundWorker_MailQueue_AwsMessageId",
+ name: "FK_Plat_P_BackgroundWorker_MailQueueEvents_Plat_P_BackgroundWorker_MailQueue_AwsMessageId",
column: x => x.AwsMessageId,
- principalTable: "P_P_BackgroundWorker_MailQueue",
+ principalTable: "Plat_P_BackgroundWorker_MailQueue",
principalColumn: "AwsMessageId",
onDelete: ReferentialAction.Cascade);
});
@@ -5743,40 +5743,40 @@ namespace Kurs.Platform.Migrations
column: "ReferenceId");
migrationBuilder.CreateIndex(
- name: "IX_P_P_BackgroundWorker_MailQueue_TableName",
- table: "P_P_BackgroundWorker_MailQueue",
+ name: "IX_Plat_P_BackgroundWorker_MailQueue_TableName",
+ table: "Plat_P_BackgroundWorker_MailQueue",
column: "TableName");
migrationBuilder.CreateIndex(
- name: "IX_P_P_BackgroundWorker_MailQueueEvents_AwsMessageId",
- table: "P_P_BackgroundWorker_MailQueueEvents",
+ name: "IX_Plat_P_BackgroundWorker_MailQueueEvents_AwsMessageId",
+ table: "Plat_P_BackgroundWorker_MailQueueEvents",
column: "AwsMessageId");
migrationBuilder.CreateIndex(
name: "IX_MailQueueTableFormat",
- table: "P_P_BackgroundWorker_MailQueueTableFormat",
+ table: "Plat_P_BackgroundWorker_MailQueueTableFormat",
columns: new[] { "TableName", "Order" },
unique: true);
migrationBuilder.CreateIndex(
- name: "IX_P_P_LanguageKey_ResourceName_Key",
- table: "P_P_LanguageKey",
+ name: "IX_Plat_P_LanguageKey_ResourceName_Key",
+ table: "Plat_P_LanguageKey",
columns: new[] { "ResourceName", "Key" },
unique: true);
migrationBuilder.CreateIndex(
- name: "IX_P_P_LanguageText_CultureName",
- table: "P_P_LanguageText",
+ name: "IX_Plat_P_LanguageText_CultureName",
+ table: "Plat_P_LanguageText",
column: "CultureName");
migrationBuilder.CreateIndex(
- name: "IX_P_P_LanguageText_ResourceName_Key",
- table: "P_P_LanguageText",
+ name: "IX_Plat_P_LanguageText_ResourceName_Key",
+ table: "Plat_P_LanguageText",
columns: new[] { "ResourceName", "Key" });
migrationBuilder.CreateIndex(
- name: "IX_P_P_Notification_NotificationRuleId",
- table: "P_P_Notification",
+ name: "IX_Plat_P_Notification_NotificationRuleId",
+ table: "Plat_P_Notification",
column: "NotificationRuleId");
migrationBuilder.CreateIndex(
@@ -6204,24 +6204,24 @@ namespace Kurs.Platform.Migrations
migrationBuilder.DropTable(
name: "OpenIddictTokens");
- migrationBuilder.DropTable(
- name: "P_P_BackgroundWorker_MailQueueEvents");
-
- migrationBuilder.DropTable(
- name: "P_P_LanguageText");
-
- migrationBuilder.DropTable(
- name: "P_P_Notification");
-
- migrationBuilder.DropTable(
- name: "P_P_SettingDefinition");
-
migrationBuilder.DropTable(
name: "Plat_P_AiBot");
migrationBuilder.DropTable(
name: "Plat_P_BackgroundWorker");
+ migrationBuilder.DropTable(
+ name: "Plat_P_BackgroundWorker_MailQueueEvents");
+
+ migrationBuilder.DropTable(
+ name: "Plat_P_LanguageText");
+
+ migrationBuilder.DropTable(
+ name: "Plat_P_Notification");
+
+ migrationBuilder.DropTable(
+ name: "Plat_P_SettingDefinition");
+
migrationBuilder.DropTable(
name: "Prt_T_Interesting");
@@ -6379,16 +6379,16 @@ namespace Kurs.Platform.Migrations
name: "OpenIddictAuthorizations");
migrationBuilder.DropTable(
- name: "P_P_BackgroundWorker_MailQueue");
+ name: "Plat_P_BackgroundWorker_MailQueue");
migrationBuilder.DropTable(
- name: "P_P_LanguageKey");
+ name: "Plat_P_LanguageKey");
migrationBuilder.DropTable(
- name: "P_P_Language");
+ name: "Plat_P_Language");
migrationBuilder.DropTable(
- name: "P_P_NotificationRule");
+ name: "Plat_P_NotificationRule");
migrationBuilder.DropTable(
name: "Sas_P_City");
@@ -6451,7 +6451,7 @@ namespace Kurs.Platform.Migrations
name: "OpenIddictApplications");
migrationBuilder.DropTable(
- name: "P_P_BackgroundWorker_MailQueueTableFormat");
+ name: "Plat_P_BackgroundWorker_MailQueueTableFormat");
migrationBuilder.DropTable(
name: "Sas_P_Country");
diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs
index 7e80b50f..aa66979e 100644
--- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs
+++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs
@@ -83,7 +83,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
- b.ToTable("P_P_Language", (string)null);
+ b.ToTable("Plat_P_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("P_P_LanguageKey", (string)null);
+ b.ToTable("Plat_P_LanguageKey", (string)null);
});
modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b =>
@@ -200,7 +200,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ResourceName", "Key");
- b.ToTable("P_P_LanguageText", (string)null);
+ b.ToTable("Plat_P_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("P_P_BackgroundWorker_MailQueue", (string)null);
+ b.ToTable("Plat_P_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("P_P_BackgroundWorker_MailQueueEvents", (string)null);
+ b.ToTable("Plat_P_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("P_P_BackgroundWorker_MailQueueTableFormat", (string)null);
+ b.ToTable("Plat_P_BackgroundWorker_MailQueueTableFormat", (string)null);
});
modelBuilder.Entity("Kurs.Notifications.Entities.Notification", b =>
@@ -497,7 +497,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("NotificationRuleId");
- b.ToTable("P_P_Notification", (string)null);
+ b.ToTable("Plat_P_Notification", (string)null);
});
modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b =>
@@ -566,7 +566,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
- b.ToTable("P_P_NotificationRule", (string)null);
+ b.ToTable("Plat_P_NotificationRule", (string)null);
});
modelBuilder.Entity("Kurs.Platform.Entities.About", b =>
@@ -10453,7 +10453,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id");
- b.ToTable("P_P_SettingDefinition", (string)null);
+ b.ToTable("Plat_P_SettingDefinition", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
diff --git a/api/src/Kurs.Platform.HttpApi.Host/Program.cs b/api/src/Kurs.Platform.HttpApi.Host/Program.cs
index be1400b2..74792492 100644
--- a/api/src/Kurs.Platform.HttpApi.Host/Program.cs
+++ b/api/src/Kurs.Platform.HttpApi.Host/Program.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Kurs.Platform.Classrooms;
+using Kurs.Platform.Enums;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.SignalR;
using Microsoft.Extensions.Configuration;
@@ -44,7 +45,7 @@ public class Program
case DatabaseProvider.PostgreSql:
loggerConfig = loggerConfig.WriteTo.PostgreSQL(
connectionString: configuration.GetConnectionString(DefaultDatabaseProvider),
- tableName: PlatformConsts.TablePrefix.PlatformByName(Enums.MenuPrefix.Platform, Enums.TableNameEnum.LogEntry),
+ tableName: TableNameResolver.GetFullTableName(nameof(TableNameEnum.LogEntry)),
columnOptions: columnWriters,
needAutoCreateTable: true,
respectCase: true
@@ -54,7 +55,7 @@ public class Program
case DatabaseProvider.SqlServer:
loggerConfig = loggerConfig.WriteTo.MSSqlServer(
connectionString: configuration.GetConnectionString(DefaultDatabaseProvider),
- tableName: PlatformConsts.TablePrefix.PlatformByName(Enums.MenuPrefix.Platform, Enums.TableNameEnum.LogEntry),
+ tableName: TableNameResolver.GetFullTableName(nameof(TableNameEnum.LogEntry)),
autoCreateSqlTable: true,
columnOptions: new Serilog.Sinks.MSSqlServer.ColumnOptions()
);