Entity isimleri düzenlemesi

This commit is contained in:
Sedat Öztürk 2025-11-01 13:27:15 +03:00
parent 73243fa390
commit e490a1a409
9 changed files with 204 additions and 202 deletions

View file

@ -2,7 +2,7 @@
public static class Prefix 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 MenuPlatform { get; set; } = "P";
public static string? DbSchema { get; set; } = null; public static string? DbSchema { get; set; } = null;

View file

@ -2,7 +2,7 @@
public static class Prefix 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 MenuPlatform { get; set; } = "P";
public static string? DbSchema { get; set; } = null; public static string? DbSchema { get; set; } = null;

View file

@ -2,7 +2,7 @@
public static class Prefix 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 MenuPlatform { get; set; } = "P";
public static string? DbSchema { get; set; } = null; public static string? DbSchema { get; set; } = null;

View file

@ -2,7 +2,7 @@
public static class Prefix 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 MenuPlatform { get; set; } = "P";
public static string? DbSchema { get; set; } = null; public static string? DbSchema { get; set; } = null;

View file

@ -12,6 +12,7 @@ public static class TableNameResolver
_map = new(StringComparer.OrdinalIgnoreCase) _map = new(StringComparer.OrdinalIgnoreCase)
{ {
// 🔹 MODULE TABLOLARI // 🔹 MODULE TABLOLARI
{ nameof(TableNameEnum.LogEntry), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
{ nameof(TableNameEnum.Language), (TablePrefix.PlatformByName, MenuPrefix.Platform) }, { nameof(TableNameEnum.Language), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
{ nameof(TableNameEnum.LanguageKey), (TablePrefix.PlatformByName, MenuPrefix.Platform) }, { nameof(TableNameEnum.LanguageKey), (TablePrefix.PlatformByName, MenuPrefix.Platform) },
{ nameof(TableNameEnum.LanguageText), (TablePrefix.PlatformByName, MenuPrefix.Platform) }, { nameof(TableNameEnum.LanguageText), (TablePrefix.PlatformByName, MenuPrefix.Platform) },

View file

@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
namespace Kurs.Platform.Migrations namespace Kurs.Platform.Migrations
{ {
[DbContext(typeof(PlatformDbContext))] [DbContext(typeof(PlatformDbContext))]
[Migration("20251101080853_Initial")] [Migration("20251101082915_Initial")]
partial class Initial partial class Initial
{ {
/// <inheritdoc /> /// <inheritdoc />
@ -86,7 +86,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id"); b.HasKey("Id");
b.ToTable("P_P_Language", (string)null); b.ToTable("Plat_P_Language", (string)null);
}); });
modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", b => modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", b =>
@ -140,7 +140,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ResourceName", "Key") b.HasIndex("ResourceName", "Key")
.IsUnique(); .IsUnique();
b.ToTable("P_P_LanguageKey", (string)null); b.ToTable("Plat_P_LanguageKey", (string)null);
}); });
modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b => modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b =>
@ -203,7 +203,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ResourceName", "Key"); 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 => modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueue", b =>
@ -294,7 +294,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("TableName"); 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 => modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueEvents", b =>
@ -356,7 +356,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("AwsMessageId"); 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 => modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueTableFormat", b =>
@ -422,7 +422,7 @@ namespace Kurs.Platform.Migrations
.IsUnique() .IsUnique()
.HasDatabaseName("IX_MailQueueTableFormat"); .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 => modelBuilder.Entity("Kurs.Notifications.Entities.Notification", b =>
@ -500,7 +500,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("NotificationRuleId"); b.HasIndex("NotificationRuleId");
b.ToTable("P_P_Notification", (string)null); b.ToTable("Plat_P_Notification", (string)null);
}); });
modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b => modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b =>
@ -569,7 +569,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id"); b.HasKey("Id");
b.ToTable("P_P_NotificationRule", (string)null); b.ToTable("Plat_P_NotificationRule", (string)null);
}); });
modelBuilder.Entity("Kurs.Platform.Entities.About", b => modelBuilder.Entity("Kurs.Platform.Entities.About", b =>
@ -10456,7 +10456,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id"); b.HasKey("Id");
b.ToTable("P_P_SettingDefinition", (string)null); b.ToTable("Plat_P_SettingDefinition", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>

View file

@ -1525,134 +1525,6 @@ namespace Kurs.Platform.Migrations
table.PrimaryKey("PK_OpenIddictScopes", x => x.Id); table.PrimaryKey("PK_OpenIddictScopes", x => x.Id);
}); });
migrationBuilder.CreateTable(
name: "P_P_BackgroundWorker_MailQueueTableFormat",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
TableName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
Order = table.Column<short>(type: "smallint", nullable: false),
ColumnName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Caption = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
HeaderCss = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
Css = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
FooterCss = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
DataType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
DataFormat = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
IsHidden = table.Column<bool>(type: "bit", nullable: false),
IsProtected = table.Column<bool>(type: "bit", nullable: false),
SubTotal = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Width = table.Column<int>(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<Guid>(type: "uniqueidentifier", nullable: false),
CultureName = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false),
UiCultureName = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false),
DisplayName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
IsEnabled = table.Column<bool>(type: "bit", nullable: false),
TwoLetterISOLanguageName = table.Column<string>(type: "nvarchar(max)", nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(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<Guid>(type: "uniqueidentifier", nullable: false),
Key = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
ResourceName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(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<Guid>(type: "uniqueidentifier", nullable: false),
NotificationType = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
RecipientType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
RecipientId = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Channel = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
IsActive = table.Column<bool>(type: "bit", nullable: false),
IsFixed = table.Column<bool>(type: "bit", nullable: false),
IsCustomized = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(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<Guid>(type: "uniqueidentifier", nullable: false),
Code = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
NameKey = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
DescriptionKey = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
DefaultValue = table.Column<string>(type: "nvarchar(2048)", maxLength: 2048, nullable: true),
IsVisibleToClients = table.Column<bool>(type: "bit", nullable: false),
Providers = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
IsInherited = table.Column<bool>(type: "bit", nullable: false),
IsEncrypted = table.Column<bool>(type: "bit", nullable: false),
MainGroupKey = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
SubGroupKey = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
RequiredPermissionName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
DataType = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: false),
SelectOptions = table.Column<string>(type: "nvarchar(max)", nullable: true),
Order = table.Column<int>(type: "int", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_P_P_SettingDefinition", x => x.Id);
});
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "Plat_P_AiBot", name: "Plat_P_AiBot",
columns: table => new columns: table => new
@ -1691,6 +1563,134 @@ namespace Kurs.Platform.Migrations
table.PrimaryKey("PK_Plat_P_BackgroundWorker", x => x.Id); table.PrimaryKey("PK_Plat_P_BackgroundWorker", x => x.Id);
}); });
migrationBuilder.CreateTable(
name: "Plat_P_BackgroundWorker_MailQueueTableFormat",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
TableName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
Order = table.Column<short>(type: "smallint", nullable: false),
ColumnName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Caption = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
HeaderCss = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
Css = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
FooterCss = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
DataType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
DataFormat = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
IsHidden = table.Column<bool>(type: "bit", nullable: false),
IsProtected = table.Column<bool>(type: "bit", nullable: false),
SubTotal = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Width = table.Column<int>(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<Guid>(type: "uniqueidentifier", nullable: false),
CultureName = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false),
UiCultureName = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false),
DisplayName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
IsEnabled = table.Column<bool>(type: "bit", nullable: false),
TwoLetterISOLanguageName = table.Column<string>(type: "nvarchar(max)", nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(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<Guid>(type: "uniqueidentifier", nullable: false),
Key = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
ResourceName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(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<Guid>(type: "uniqueidentifier", nullable: false),
NotificationType = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
RecipientType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
RecipientId = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Channel = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
IsActive = table.Column<bool>(type: "bit", nullable: false),
IsFixed = table.Column<bool>(type: "bit", nullable: false),
IsCustomized = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(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<Guid>(type: "uniqueidentifier", nullable: false),
Code = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
NameKey = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
DescriptionKey = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
DefaultValue = table.Column<string>(type: "nvarchar(2048)", maxLength: 2048, nullable: true),
IsVisibleToClients = table.Column<bool>(type: "bit", nullable: false),
Providers = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
IsInherited = table.Column<bool>(type: "bit", nullable: false),
IsEncrypted = table.Column<bool>(type: "bit", nullable: false),
MainGroupKey = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
SubGroupKey = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
RequiredPermissionName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
DataType = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: false),
SelectOptions = table.Column<string>(type: "nvarchar(max)", nullable: true),
Order = table.Column<int>(type: "int", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Plat_P_SettingDefinition", x => x.Id);
});
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "Prt_T_Interesting", name: "Prt_T_Interesting",
columns: table => new columns: table => new
@ -3203,7 +3203,7 @@ namespace Kurs.Platform.Migrations
}); });
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "P_P_BackgroundWorker_MailQueue", name: "Plat_P_BackgroundWorker_MailQueue",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3229,18 +3229,18 @@ namespace Kurs.Platform.Migrations
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_P_P_BackgroundWorker_MailQueue", x => x.Id); table.PrimaryKey("PK_Plat_P_BackgroundWorker_MailQueue", x => x.Id);
table.UniqueConstraint("AK_P_P_BackgroundWorker_MailQueue_AwsMessageId", x => x.AwsMessageId); table.UniqueConstraint("AK_Plat_P_BackgroundWorker_MailQueue_AwsMessageId", x => x.AwsMessageId);
table.ForeignKey( 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, column: x => x.TableName,
principalTable: "P_P_BackgroundWorker_MailQueueTableFormat", principalTable: "Plat_P_BackgroundWorker_MailQueueTableFormat",
principalColumn: "TableName", principalColumn: "TableName",
onDelete: ReferentialAction.Cascade); onDelete: ReferentialAction.Cascade);
}); });
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "P_P_LanguageText", name: "Plat_P_LanguageText",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3258,23 +3258,23 @@ namespace Kurs.Platform.Migrations
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_P_P_LanguageText", x => x.Id); table.PrimaryKey("PK_Plat_P_LanguageText", x => x.Id);
table.ForeignKey( 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 }, columns: x => new { x.ResourceName, x.Key },
principalTable: "P_P_LanguageKey", principalTable: "Plat_P_LanguageKey",
principalColumns: new[] { "ResourceName", "Key" }, principalColumns: new[] { "ResourceName", "Key" },
onDelete: ReferentialAction.Cascade); onDelete: ReferentialAction.Cascade);
table.ForeignKey( table.ForeignKey(
name: "FK_P_P_LanguageText_P_P_Language_CultureName", name: "FK_Plat_P_LanguageText_Plat_P_Language_CultureName",
column: x => x.CultureName, column: x => x.CultureName,
principalTable: "P_P_Language", principalTable: "Plat_P_Language",
principalColumn: "CultureName", principalColumn: "CultureName",
onDelete: ReferentialAction.Cascade); onDelete: ReferentialAction.Cascade);
}); });
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "P_P_Notification", name: "Plat_P_Notification",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3297,11 +3297,11 @@ namespace Kurs.Platform.Migrations
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_P_P_Notification", x => x.Id); table.PrimaryKey("PK_Plat_P_Notification", x => x.Id);
table.ForeignKey( table.ForeignKey(
name: "FK_P_P_Notification_P_P_NotificationRule_NotificationRuleId", name: "FK_Plat_P_Notification_Plat_P_NotificationRule_NotificationRuleId",
column: x => x.NotificationRuleId, column: x => x.NotificationRuleId,
principalTable: "P_P_NotificationRule", principalTable: "Plat_P_NotificationRule",
principalColumn: "Id", principalColumn: "Id",
onDelete: ReferentialAction.Cascade); onDelete: ReferentialAction.Cascade);
}); });
@ -3795,7 +3795,7 @@ namespace Kurs.Platform.Migrations
}); });
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "P_P_BackgroundWorker_MailQueueEvents", name: "Plat_P_BackgroundWorker_MailQueueEvents",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
@ -3814,11 +3814,11 @@ namespace Kurs.Platform.Migrations
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_P_P_BackgroundWorker_MailQueueEvents", x => x.Id); table.PrimaryKey("PK_Plat_P_BackgroundWorker_MailQueueEvents", x => x.Id);
table.ForeignKey( 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, column: x => x.AwsMessageId,
principalTable: "P_P_BackgroundWorker_MailQueue", principalTable: "Plat_P_BackgroundWorker_MailQueue",
principalColumn: "AwsMessageId", principalColumn: "AwsMessageId",
onDelete: ReferentialAction.Cascade); onDelete: ReferentialAction.Cascade);
}); });
@ -5743,40 +5743,40 @@ namespace Kurs.Platform.Migrations
column: "ReferenceId"); column: "ReferenceId");
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_P_P_BackgroundWorker_MailQueue_TableName", name: "IX_Plat_P_BackgroundWorker_MailQueue_TableName",
table: "P_P_BackgroundWorker_MailQueue", table: "Plat_P_BackgroundWorker_MailQueue",
column: "TableName"); column: "TableName");
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_P_P_BackgroundWorker_MailQueueEvents_AwsMessageId", name: "IX_Plat_P_BackgroundWorker_MailQueueEvents_AwsMessageId",
table: "P_P_BackgroundWorker_MailQueueEvents", table: "Plat_P_BackgroundWorker_MailQueueEvents",
column: "AwsMessageId"); column: "AwsMessageId");
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_MailQueueTableFormat", name: "IX_MailQueueTableFormat",
table: "P_P_BackgroundWorker_MailQueueTableFormat", table: "Plat_P_BackgroundWorker_MailQueueTableFormat",
columns: new[] { "TableName", "Order" }, columns: new[] { "TableName", "Order" },
unique: true); unique: true);
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_P_P_LanguageKey_ResourceName_Key", name: "IX_Plat_P_LanguageKey_ResourceName_Key",
table: "P_P_LanguageKey", table: "Plat_P_LanguageKey",
columns: new[] { "ResourceName", "Key" }, columns: new[] { "ResourceName", "Key" },
unique: true); unique: true);
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_P_P_LanguageText_CultureName", name: "IX_Plat_P_LanguageText_CultureName",
table: "P_P_LanguageText", table: "Plat_P_LanguageText",
column: "CultureName"); column: "CultureName");
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_P_P_LanguageText_ResourceName_Key", name: "IX_Plat_P_LanguageText_ResourceName_Key",
table: "P_P_LanguageText", table: "Plat_P_LanguageText",
columns: new[] { "ResourceName", "Key" }); columns: new[] { "ResourceName", "Key" });
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_P_P_Notification_NotificationRuleId", name: "IX_Plat_P_Notification_NotificationRuleId",
table: "P_P_Notification", table: "Plat_P_Notification",
column: "NotificationRuleId"); column: "NotificationRuleId");
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
@ -6204,24 +6204,24 @@ namespace Kurs.Platform.Migrations
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "OpenIddictTokens"); 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( migrationBuilder.DropTable(
name: "Plat_P_AiBot"); name: "Plat_P_AiBot");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "Plat_P_BackgroundWorker"); 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( migrationBuilder.DropTable(
name: "Prt_T_Interesting"); name: "Prt_T_Interesting");
@ -6379,16 +6379,16 @@ namespace Kurs.Platform.Migrations
name: "OpenIddictAuthorizations"); name: "OpenIddictAuthorizations");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "P_P_BackgroundWorker_MailQueue"); name: "Plat_P_BackgroundWorker_MailQueue");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "P_P_LanguageKey"); name: "Plat_P_LanguageKey");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "P_P_Language"); name: "Plat_P_Language");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "P_P_NotificationRule"); name: "Plat_P_NotificationRule");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "Sas_P_City"); name: "Sas_P_City");
@ -6451,7 +6451,7 @@ namespace Kurs.Platform.Migrations
name: "OpenIddictApplications"); name: "OpenIddictApplications");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "P_P_BackgroundWorker_MailQueueTableFormat"); name: "Plat_P_BackgroundWorker_MailQueueTableFormat");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "Sas_P_Country"); name: "Sas_P_Country");

View file

@ -83,7 +83,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id"); b.HasKey("Id");
b.ToTable("P_P_Language", (string)null); b.ToTable("Plat_P_Language", (string)null);
}); });
modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", b => modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", b =>
@ -137,7 +137,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ResourceName", "Key") b.HasIndex("ResourceName", "Key")
.IsUnique(); .IsUnique();
b.ToTable("P_P_LanguageKey", (string)null); b.ToTable("Plat_P_LanguageKey", (string)null);
}); });
modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b => modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b =>
@ -200,7 +200,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("ResourceName", "Key"); 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 => modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueue", b =>
@ -291,7 +291,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("TableName"); 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 => modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueEvents", b =>
@ -353,7 +353,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("AwsMessageId"); 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 => modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueTableFormat", b =>
@ -419,7 +419,7 @@ namespace Kurs.Platform.Migrations
.IsUnique() .IsUnique()
.HasDatabaseName("IX_MailQueueTableFormat"); .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 => modelBuilder.Entity("Kurs.Notifications.Entities.Notification", b =>
@ -497,7 +497,7 @@ namespace Kurs.Platform.Migrations
b.HasIndex("NotificationRuleId"); b.HasIndex("NotificationRuleId");
b.ToTable("P_P_Notification", (string)null); b.ToTable("Plat_P_Notification", (string)null);
}); });
modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b => modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b =>
@ -566,7 +566,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id"); b.HasKey("Id");
b.ToTable("P_P_NotificationRule", (string)null); b.ToTable("Plat_P_NotificationRule", (string)null);
}); });
modelBuilder.Entity("Kurs.Platform.Entities.About", b => modelBuilder.Entity("Kurs.Platform.Entities.About", b =>
@ -10453,7 +10453,7 @@ namespace Kurs.Platform.Migrations
b.HasKey("Id"); b.HasKey("Id");
b.ToTable("P_P_SettingDefinition", (string)null); b.ToTable("Plat_P_SettingDefinition", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>

View file

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using System.Threading.Tasks; using System.Threading.Tasks;
using Kurs.Platform.Classrooms; using Kurs.Platform.Classrooms;
using Kurs.Platform.Enums;
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.SignalR; using Microsoft.AspNetCore.SignalR;
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration;
@ -44,7 +45,7 @@ public class Program
case DatabaseProvider.PostgreSql: case DatabaseProvider.PostgreSql:
loggerConfig = loggerConfig.WriteTo.PostgreSQL( loggerConfig = loggerConfig.WriteTo.PostgreSQL(
connectionString: configuration.GetConnectionString(DefaultDatabaseProvider), connectionString: configuration.GetConnectionString(DefaultDatabaseProvider),
tableName: PlatformConsts.TablePrefix.PlatformByName(Enums.MenuPrefix.Platform, Enums.TableNameEnum.LogEntry), tableName: TableNameResolver.GetFullTableName(nameof(TableNameEnum.LogEntry)),
columnOptions: columnWriters, columnOptions: columnWriters,
needAutoCreateTable: true, needAutoCreateTable: true,
respectCase: true respectCase: true
@ -54,7 +55,7 @@ public class Program
case DatabaseProvider.SqlServer: case DatabaseProvider.SqlServer:
loggerConfig = loggerConfig.WriteTo.MSSqlServer( loggerConfig = loggerConfig.WriteTo.MSSqlServer(
connectionString: configuration.GetConnectionString(DefaultDatabaseProvider), connectionString: configuration.GetConnectionString(DefaultDatabaseProvider),
tableName: PlatformConsts.TablePrefix.PlatformByName(Enums.MenuPrefix.Platform, Enums.TableNameEnum.LogEntry), tableName: TableNameResolver.GetFullTableName(nameof(TableNameEnum.LogEntry)),
autoCreateSqlTable: true, autoCreateSqlTable: true,
columnOptions: new Serilog.Sinks.MSSqlServer.ColumnOptions() columnOptions: new Serilog.Sinks.MSSqlServer.ColumnOptions()
); );