TableNameResolver
This commit is contained in:
parent
2a1b1740ac
commit
cceba7bc92
40 changed files with 3147 additions and 2777 deletions
|
|
@ -1,10 +1,18 @@
|
|||
namespace Kurs.Languages;
|
||||
|
||||
public static class LanguagesDbProperties
|
||||
public static class Prefix
|
||||
{
|
||||
public static string DbTablePrefix { get; set; } = "P";
|
||||
|
||||
public static string DbTablePlatform { get; set; } = "P";
|
||||
public static string MenuPlatform { get; set; } = "P";
|
||||
public static string? DbSchema { get; set; } = null;
|
||||
|
||||
public const string ConnectionStringName = "Languages";
|
||||
}
|
||||
|
||||
public static class TablePrefix
|
||||
{
|
||||
public static string ByName(string tableName)
|
||||
{
|
||||
return $"{Prefix.DbTablePlatform}_{Prefix.MenuPlatform}_{tableName}";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using Volo.Abp.EntityFrameworkCore;
|
|||
|
||||
namespace Kurs.Languages.EntityFrameworkCore;
|
||||
|
||||
[ConnectionStringName(LanguagesDbProperties.ConnectionStringName)]
|
||||
[ConnectionStringName(Prefix.ConnectionStringName)]
|
||||
public interface ILanguagesDbContext : IEfCoreDbContext
|
||||
{
|
||||
/* Add DbSet for each Aggregate Root here. Example:
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using Volo.Abp.EntityFrameworkCore;
|
|||
|
||||
namespace Kurs.Languages.EntityFrameworkCore;
|
||||
|
||||
[ConnectionStringName(LanguagesDbProperties.ConnectionStringName)]
|
||||
[ConnectionStringName(Prefix.ConnectionStringName)]
|
||||
public class LanguagesDbContext : AbpDbContext<LanguagesDbContext>, ILanguagesDbContext
|
||||
{
|
||||
public DbSet<Language> Languages { get; set; }
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ public static class LanguagesDbContextModelCreatingExtensions
|
|||
|
||||
builder.Entity<Language>(b =>
|
||||
{
|
||||
b.ToTable(LanguagesDbProperties.DbTablePrefix + nameof(Language), LanguagesDbProperties.DbSchema);
|
||||
b.ToTable(TablePrefix.ByName(nameof(Language)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(a => a.CultureName).HasMaxLength(10).IsRequired();
|
||||
|
|
@ -31,13 +31,12 @@ public static class LanguagesDbContextModelCreatingExtensions
|
|||
|
||||
builder.Entity<LanguageKey>(b =>
|
||||
{
|
||||
b.ToTable(LanguagesDbProperties.DbTablePrefix + nameof(LanguageKey), LanguagesDbProperties.DbSchema);
|
||||
b.ToTable(TablePrefix.ByName(nameof(LanguageKey)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(a => a.Key).HasMaxLength(100).IsRequired();
|
||||
b.Property(a => a.ResourceName).HasMaxLength(50).IsRequired();
|
||||
|
||||
// LanguageKey → LanguageText (ResourceName + Key üzerinden)
|
||||
b.HasMany(a => a.Texts)
|
||||
.WithOne(t => t.LanguageKey)
|
||||
.HasForeignKey(t => new { t.ResourceName, t.Key })
|
||||
|
|
@ -50,7 +49,7 @@ public static class LanguagesDbContextModelCreatingExtensions
|
|||
|
||||
builder.Entity<LanguageText>(b =>
|
||||
{
|
||||
b.ToTable(LanguagesDbProperties.DbTablePrefix + nameof(LanguageText), LanguagesDbProperties.DbSchema);
|
||||
b.ToTable(TablePrefix.ByName(nameof(LanguageText)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(a => a.CultureName).HasMaxLength(10).IsRequired();
|
||||
|
|
|
|||
|
|
@ -1,10 +1,18 @@
|
|||
namespace Kurs.MailQueue.Domain;
|
||||
|
||||
public static class MailQueueDbProperties
|
||||
public static class Prefix
|
||||
{
|
||||
public static string DbTablePrefix { get; set; } = "P";
|
||||
|
||||
public static string DbTablePlatform { get; set; } = "P";
|
||||
public static string MenuPlatform { get; set; } = "P";
|
||||
public static string? DbSchema { get; set; } = null;
|
||||
|
||||
public const string ConnectionStringName = "Default";
|
||||
}
|
||||
|
||||
public static class TablePrefix
|
||||
{
|
||||
public static string ByName(string tableName)
|
||||
{
|
||||
return $"{Prefix.DbTablePlatform}_{Prefix.MenuPlatform}_{tableName}";
|
||||
}
|
||||
}
|
||||
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore;
|
|||
|
||||
namespace Kurs.MailQueue.EntityFrameworkCore;
|
||||
|
||||
[ConnectionStringName(MailQueueDbProperties.ConnectionStringName)]
|
||||
[ConnectionStringName(Prefix.ConnectionStringName)]
|
||||
public interface IMailQueueDbContext : IEfCoreDbContext
|
||||
{
|
||||
/* Add DbSet for each Aggregate Root here. Example:
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using Volo.Abp.EntityFrameworkCore;
|
|||
|
||||
namespace Kurs.MailQueue.EntityFrameworkCore;
|
||||
|
||||
[ConnectionStringName(MailQueueDbProperties.ConnectionStringName)]
|
||||
[ConnectionStringName(Prefix.ConnectionStringName)]
|
||||
public class MailQueueDbContext : AbpDbContext<MailQueueDbContext>, IMailQueueDbContext
|
||||
{
|
||||
public DbSet<Domain.Entities.BackgroundWorker_MailQueue> MailQueue { get; set; }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using Kurs.MailQueue.Domain;
|
||||
using Kurs.MailQueue.Domain.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Volo.Abp;
|
||||
using Volo.Abp.EntityFrameworkCore.Modeling;
|
||||
|
|
@ -11,9 +12,9 @@ public static class MailQueueDbContextModelCreatingExtensions
|
|||
{
|
||||
Check.NotNull(builder, nameof(builder));
|
||||
|
||||
builder.Entity<Domain.Entities.BackgroundWorker_MailQueue>(b =>
|
||||
builder.Entity<BackgroundWorker_MailQueue>(b =>
|
||||
{
|
||||
b.ToTable(MailQueueDbProperties.DbTablePrefix + nameof(Domain.Entities.BackgroundWorker_MailQueue), MailQueueDbProperties.DbSchema);
|
||||
b.ToTable(TablePrefix.ByName(nameof(BackgroundWorker_MailQueue)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.From).IsRequired().HasMaxLength(100);
|
||||
|
|
@ -41,9 +42,9 @@ public static class MailQueueDbContextModelCreatingExtensions
|
|||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
builder.Entity<Domain.Entities.BackgroundWorker_MailQueueEvents>(b =>
|
||||
builder.Entity<BackgroundWorker_MailQueueEvents>(b =>
|
||||
{
|
||||
b.ToTable(MailQueueDbProperties.DbTablePrefix + nameof(Domain.Entities.BackgroundWorker_MailQueueEvents), MailQueueDbProperties.DbSchema);
|
||||
b.ToTable(TablePrefix.ByName(nameof(BackgroundWorker_MailQueueEvents)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.AwsMessageId).IsRequired().HasMaxLength(100);
|
||||
|
|
@ -51,9 +52,9 @@ public static class MailQueueDbContextModelCreatingExtensions
|
|||
b.Property(x => x.MailAddress).HasMaxLength(100);
|
||||
});
|
||||
|
||||
builder.Entity<Domain.Entities.BackgroundWorker_MailQueueTableFormat>(b =>
|
||||
builder.Entity<BackgroundWorker_MailQueueTableFormat>(b =>
|
||||
{
|
||||
b.ToTable(MailQueueDbProperties.DbTablePrefix + nameof(Domain.Entities.BackgroundWorker_MailQueueTableFormat), MailQueueDbProperties.DbSchema);
|
||||
b.ToTable(TablePrefix.ByName(nameof(BackgroundWorker_MailQueueTableFormat)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.TableName).IsRequired().HasMaxLength(100);
|
||||
|
|
|
|||
|
|
@ -1,10 +1,18 @@
|
|||
namespace Kurs.Notifications.Domain;
|
||||
|
||||
public static class NotificationDbProperties
|
||||
public static class Prefix
|
||||
{
|
||||
public static string DbTablePrefix { get; set; } = "P";
|
||||
|
||||
public static string DbTablePlatform { get; set; } = "P";
|
||||
public static string MenuPlatform { get; set; } = "P";
|
||||
public static string? DbSchema { get; set; } = null;
|
||||
|
||||
public const string ConnectionStringName = "Notifications";
|
||||
}
|
||||
|
||||
public static class TablePrefix
|
||||
{
|
||||
public static string ByName(string tableName)
|
||||
{
|
||||
return $"{Prefix.DbTablePlatform}_{Prefix.MenuPlatform}_{tableName}";
|
||||
}
|
||||
}
|
||||
|
|
@ -4,7 +4,7 @@ using Volo.Abp.EntityFrameworkCore;
|
|||
|
||||
namespace Kurs.Notifications.EntityFrameworkCore;
|
||||
|
||||
[ConnectionStringName(NotificationDbProperties.ConnectionStringName)]
|
||||
[ConnectionStringName(Prefix.ConnectionStringName)]
|
||||
public interface INotificationDbContext : IEfCoreDbContext
|
||||
{
|
||||
/* Add DbSet for each Aggregate Root here. Example:
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using Volo.Abp.EntityFrameworkCore;
|
|||
|
||||
namespace Kurs.Notifications.EntityFrameworkCore;
|
||||
|
||||
[ConnectionStringName(NotificationDbProperties.ConnectionStringName)]
|
||||
[ConnectionStringName(Prefix.ConnectionStringName)]
|
||||
public class NotificationDbContext : AbpDbContext<NotificationDbContext>, INotificationDbContext
|
||||
{
|
||||
/* Add DbSet for each Aggregate Root here. Example:
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ public static class NotificationDbContextModelCreatingExtensions
|
|||
|
||||
builder.Entity<NotificationRule>(b =>
|
||||
{
|
||||
b.ToTable(NotificationDbProperties.DbTablePrefix + nameof(NotificationRule), NotificationDbProperties.DbSchema);
|
||||
b.ToTable(TablePrefix.ByName(nameof(NotificationRule)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.NotificationType).IsRequired().HasMaxLength(100);
|
||||
|
|
@ -32,7 +32,7 @@ public static class NotificationDbContextModelCreatingExtensions
|
|||
|
||||
builder.Entity<Notification>(b =>
|
||||
{
|
||||
b.ToTable(NotificationDbProperties.DbTablePrefix + nameof(Notification), NotificationDbProperties.DbSchema);
|
||||
b.ToTable(TablePrefix.ByName(nameof(Notification)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.NotificationChannel).IsRequired().HasMaxLength(50);
|
||||
|
|
|
|||
|
|
@ -1,10 +1,18 @@
|
|||
namespace Kurs.Settings;
|
||||
|
||||
public static class SettingsDbProperties
|
||||
public static class Prefix
|
||||
{
|
||||
public static string DbTablePrefix { get; set; } = "P";
|
||||
|
||||
public static string DbTablePlatform { get; set; } = "P";
|
||||
public static string MenuPlatform { get; set; } = "P";
|
||||
public static string? DbSchema { get; set; } = null;
|
||||
|
||||
public const string ConnectionStringName = "Settings";
|
||||
}
|
||||
|
||||
public static class TablePrefix
|
||||
{
|
||||
public static string ByName(string tableName)
|
||||
{
|
||||
return $"{Prefix.DbTablePlatform}_{Prefix.MenuPlatform}_{tableName}";
|
||||
}
|
||||
}
|
||||
|
|
@ -3,7 +3,7 @@ using Volo.Abp.EntityFrameworkCore;
|
|||
|
||||
namespace Kurs.Settings.EntityFrameworkCore;
|
||||
|
||||
[ConnectionStringName(SettingsDbProperties.ConnectionStringName)]
|
||||
[ConnectionStringName(Prefix.ConnectionStringName)]
|
||||
public interface ISettingsDbContext : IEfCoreDbContext
|
||||
{
|
||||
/* Add DbSet for each Aggregate Root here. Example:
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using Volo.Abp.SettingManagement.EntityFrameworkCore;
|
|||
|
||||
namespace Kurs.Settings.EntityFrameworkCore;
|
||||
|
||||
[ConnectionStringName(SettingsDbProperties.ConnectionStringName)]
|
||||
[ConnectionStringName(Prefix.ConnectionStringName)]
|
||||
public class SettingsDbContext : AbpDbContext<SettingsDbContext>, ISettingsDbContext
|
||||
{
|
||||
public DbSet<SettingDefinition> Settings { get; set; }
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ public static class SettingsDbContextModelCreatingExtensions
|
|||
|
||||
builder.Entity<SettingDefinition>(b =>
|
||||
{
|
||||
b.ToTable(SettingsDbProperties.DbTablePrefix + nameof(SettingDefinition), SettingsDbProperties.DbSchema);
|
||||
b.ToTable(TablePrefix.ByName(nameof(SettingDefinition)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
var valueComparerDict = new ValueComparer<Dictionary<string, string>>(
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
221
api/src/Kurs.Platform.Domain.Shared/Enums/LookUpQueryValues.cs
Normal file
221
api/src/Kurs.Platform.Domain.Shared/Enums/LookUpQueryValues.cs
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
using Kurs.Platform.Enums;
|
||||
using static Kurs.Platform.PlatformConsts;
|
||||
|
||||
namespace Kurs.Platform;
|
||||
|
||||
public static class LookUpQueryValues
|
||||
{
|
||||
public static string LanguageKeyValues =
|
||||
$"SELECT " +
|
||||
$"\"{FullNameTable(TableNameEnum.LanguageKey)}\".\"Key\", " +
|
||||
$"CONCAT(" +
|
||||
$"\"{FullNameTable(TableNameEnum.LanguageKey)}\".\"Key\", " +
|
||||
$"' (', " +
|
||||
$"\"{FullNameTable(TableNameEnum.LanguageText)}\".\"Value\", " +
|
||||
$"')'" +
|
||||
$") AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.LanguageKey)}\" " +
|
||||
$"LEFT OUTER JOIN \"{FullNameTable(TableNameEnum.LanguageText)}\" " +
|
||||
$"ON \"{FullNameTable(TableNameEnum.LanguageKey)}\".\"Key\" = \"{FullNameTable(TableNameEnum.LanguageText)}\".\"Key\" " +
|
||||
$"AND \"{FullNameTable(TableNameEnum.LanguageKey)}\".\"ResourceName\" = \"{FullNameTable(TableNameEnum.LanguageText)}\".\"ResourceName\" " +
|
||||
$"WHERE " +
|
||||
$"\"{FullNameTable(TableNameEnum.LanguageKey)}\".\"IsDeleted\" = 'false' " +
|
||||
$"AND \"{FullNameTable(TableNameEnum.LanguageText)}\".\"IsDeleted\" = 'false' " +
|
||||
$"AND \"{FullNameTable(TableNameEnum.LanguageText)}\".\"CultureName\" = 'tr' " +
|
||||
$"ORDER BY \"{FullNameTable(TableNameEnum.LanguageKey)}\".\"Key\";";
|
||||
|
||||
public static string CultureValues =
|
||||
$"SELECT " +
|
||||
$"\"CultureName\" AS \"Key\", " +
|
||||
$"\"DisplayName\" AS \"Name\", " +
|
||||
$"\"CreationTime\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.Language)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' " +
|
||||
$"AND \"IsDeleted\" = 'false';";
|
||||
|
||||
public static string CountryGroupValues =
|
||||
$"SELECT " +
|
||||
$"\"Name\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.CountryGroup)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' " +
|
||||
$"GROUP BY \"Name\" " +
|
||||
$"ORDER BY \"Name\";";
|
||||
|
||||
public static string DataSourceValues =
|
||||
$"SELECT " +
|
||||
$"\"Code\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.DataSource)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' " +
|
||||
$"ORDER BY \"Name\";";
|
||||
|
||||
public static string BlogCategoryValues =
|
||||
$"SELECT " +
|
||||
$"\"Code\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.BlogCategory)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' " +
|
||||
$"ORDER BY \"Name\";";
|
||||
|
||||
public static string CountryValues =
|
||||
$"SELECT " +
|
||||
$"\"Code\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.Country)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' " +
|
||||
$"ORDER BY \"Name\";";
|
||||
|
||||
public static string CityValues =
|
||||
$"SELECT " +
|
||||
$"\"Code\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.City)}\" " +
|
||||
$"WHERE " +
|
||||
$"(\"Country\" = @param0 OR @param0 IS NULL) " +
|
||||
$"AND \"IsDeleted\" = 'false' " +
|
||||
$"ORDER BY \"Name\";";
|
||||
|
||||
public static string DistrictValues =
|
||||
$"SELECT " +
|
||||
$"\"Name\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.District)}\" " +
|
||||
$"WHERE " +
|
||||
$"(\"Country\" = @param0 OR @param0 IS NULL) " +
|
||||
$"AND (\"City\" = @param1 OR @param1 IS NULL) " +
|
||||
$"AND \"IsDeleted\" = 'false' " +
|
||||
$"GROUP BY \"Name\" " +
|
||||
$"ORDER BY \"Name\";";
|
||||
|
||||
public static string StreetValues =
|
||||
$"SELECT " +
|
||||
$"\"Street\" AS \"Key\", " +
|
||||
$"\"Street\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.District)}\" " +
|
||||
$"WHERE " +
|
||||
$"(\"Country\" = @param0 OR @param0 IS NULL) " +
|
||||
$"AND (\"City\" = @param1 OR @param1 IS NULL) " +
|
||||
$"AND (\"Name\" = @param2 OR @param2 IS NULL) " +
|
||||
$"AND \"IsDeleted\" = 'false' " +
|
||||
$"GROUP BY \"Street\" " +
|
||||
$"ORDER BY \"Street\";";
|
||||
|
||||
public static string TenantValues =
|
||||
$"SELECT * FROM (" +
|
||||
$"SELECT NULL AS \"Key\", 'Host' AS \"Name\" " +
|
||||
$"UNION ALL " +
|
||||
$"SELECT " +
|
||||
$"\"AbpTenants\".\"Id\" AS \"Key\", " +
|
||||
$"\"AbpTenants\".\"Name\" AS \"Name\" " +
|
||||
$"FROM \"AbpTenants\"" +
|
||||
$") AS \"List\" " +
|
||||
$"ORDER BY \"Name\"";
|
||||
|
||||
public static string BranchValues =
|
||||
$"SELECT \"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"KURS\".\"dbo\".\"{FullNameTable(TableNameEnum.Branch)}\" " +
|
||||
$"WHERE " +
|
||||
$"\"TenantId\" = @TENANTID " +
|
||||
$"AND \"IsDeleted\" = 'false' " +
|
||||
$"AND \"Id\" IN ( " +
|
||||
$"SELECT \"BranchId\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.BranchUsers)}\" " +
|
||||
$"WHERE \"UserId\" = @USERID " +
|
||||
$") " +
|
||||
$"ORDER BY \"Name\";";
|
||||
|
||||
public static string RegistrationTypeValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.RegistrationType)}\" " +
|
||||
$"WHERE " +
|
||||
$"(\"BranchId\" = @param0 OR @param0 IS NULL) " +
|
||||
$"AND \"IsDeleted\" = 'false' " +
|
||||
$"ORDER BY \"Name\";";
|
||||
|
||||
public static string SkillTypeValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.SkillType)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' " +
|
||||
$"ORDER BY \"Name\";";
|
||||
|
||||
public static string ClassTypeValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.ClassType)}\" " +
|
||||
$"WHERE " +
|
||||
$"(\"BranchId\" = @param0 OR @param0 IS NULL) " +
|
||||
$"AND \"IsDeleted\" = 'false' " +
|
||||
$"ORDER BY \"Name\";";
|
||||
|
||||
public static string PaymentMethodValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.PaymentMethod)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' " +
|
||||
$"ORDER BY \"Name\";";
|
||||
|
||||
public static string InstallmentValues =
|
||||
$"SELECT " +
|
||||
$"\"Installment\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.InstallmentOption)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' " +
|
||||
$"ORDER BY \"Installment\";";
|
||||
|
||||
public static string QuestionPoolValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.QuestionPool)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' ";
|
||||
|
||||
public static string QuestionTagValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.QuestionTag)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' ";
|
||||
|
||||
public static string EventCategoryValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.EventCategory)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' ";
|
||||
|
||||
public static string EventTypeValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.EventType)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' ";
|
||||
|
||||
public static string UomCategoryValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.UomCategory)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' ";
|
||||
|
||||
public static string BankValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.Bank)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' ";
|
||||
|
||||
public static string CurrencyValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.Currency)}\" " +
|
||||
$"WHERE \"IsDeleted\" = 'false' ";
|
||||
}
|
||||
44
api/src/Kurs.Platform.Domain.Shared/Enums/MenuPrefixEnum.cs
Normal file
44
api/src/Kurs.Platform.Domain.Shared/Enums/MenuPrefixEnum.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
using System;
|
||||
|
||||
namespace Kurs.Platform.Enums;
|
||||
|
||||
public enum MenuPrefix
|
||||
{
|
||||
Platform,
|
||||
Saas,
|
||||
Administration,
|
||||
Participant,
|
||||
Coordinator,
|
||||
Crm,
|
||||
Supplychain,
|
||||
Maintenance,
|
||||
Warehouse,
|
||||
Project,
|
||||
Hr,
|
||||
Mrp,
|
||||
Accounting
|
||||
}
|
||||
|
||||
public static class MenuPrefixExtensions
|
||||
{
|
||||
public static string ToPrefix(this MenuPrefix menu)
|
||||
{
|
||||
return menu switch
|
||||
{
|
||||
MenuPrefix.Platform => "P",
|
||||
MenuPrefix.Saas => "Sas",
|
||||
MenuPrefix.Administration => "Adm",
|
||||
MenuPrefix.Participant => "Prt",
|
||||
MenuPrefix.Coordinator => "Crd",
|
||||
MenuPrefix.Crm => "Crm",
|
||||
MenuPrefix.Supplychain => "Scp",
|
||||
MenuPrefix.Maintenance => "Mnt",
|
||||
MenuPrefix.Warehouse => "Wh",
|
||||
MenuPrefix.Project => "Prj",
|
||||
MenuPrefix.Hr => "Hr",
|
||||
MenuPrefix.Mrp => "Mrp",
|
||||
MenuPrefix.Accounting => "Acc",
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(menu), menu, null)
|
||||
};
|
||||
}
|
||||
}
|
||||
106
api/src/Kurs.Platform.Domain.Shared/Enums/TableNameEnum.cs
Normal file
106
api/src/Kurs.Platform.Domain.Shared/Enums/TableNameEnum.cs
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
namespace Kurs.Platform.Enums;
|
||||
|
||||
public enum TableNameEnum
|
||||
{
|
||||
Language,
|
||||
LanguageKey,
|
||||
LanguageText,
|
||||
SettingDefinition,
|
||||
Notification,
|
||||
NotificationRule,
|
||||
BackgroundWorker_MailQueue,
|
||||
BackgroundWorker_MailQueueEvents,
|
||||
BackgroundWorker_MailQueueTableFormat,
|
||||
LogEntry,
|
||||
AiBot,
|
||||
Branch,
|
||||
BranchUsers,
|
||||
GlobalSearch,
|
||||
Route,
|
||||
Menu,
|
||||
DataSource,
|
||||
ListForm,
|
||||
ListFormField,
|
||||
ListFormCustomization,
|
||||
ListFormImport,
|
||||
ListFormImportExecute,
|
||||
Activity,
|
||||
BackgroundWorker,
|
||||
ForumCategory,
|
||||
ForumTopic,
|
||||
ForumPost,
|
||||
CustomEntity,
|
||||
CustomEntityField,
|
||||
ApiMigration,
|
||||
ApiEndpoint,
|
||||
CustomEndpoint,
|
||||
CustomComponent,
|
||||
ReportCategory,
|
||||
ReportTemplate,
|
||||
ReportParameter,
|
||||
ReportGenerated,
|
||||
IpRestriction,
|
||||
Sector,
|
||||
ContactTag,
|
||||
ContactTitle,
|
||||
Currency,
|
||||
CountryGroup,
|
||||
Country,
|
||||
City,
|
||||
District,
|
||||
SkillType,
|
||||
Skill,
|
||||
SkillLevel,
|
||||
UomCategory,
|
||||
Uom,
|
||||
Bank,
|
||||
BankAccount,
|
||||
Schedule,
|
||||
ScheduleLesson,
|
||||
Program,
|
||||
RegistrationType,
|
||||
RegistrationMethod,
|
||||
ClassType,
|
||||
Class,
|
||||
Level,
|
||||
Interesting,
|
||||
Source,
|
||||
NoteType,
|
||||
Behavior,
|
||||
EducationStatus,
|
||||
EventCategory,
|
||||
EventType,
|
||||
Event,
|
||||
SalesRejectionReason,
|
||||
ClassCancellationReason,
|
||||
LessonPeriod,
|
||||
MeetingMethod,
|
||||
MeetingResult,
|
||||
Disease,
|
||||
Psychologist,
|
||||
Vaccine,
|
||||
Lawyer,
|
||||
Meal,
|
||||
Document,
|
||||
Vehicle,
|
||||
WorkHour,
|
||||
About,
|
||||
Service,
|
||||
Product,
|
||||
PaymentMethod,
|
||||
InstallmentOption,
|
||||
Order,
|
||||
OrderItem,
|
||||
BlogCategory,
|
||||
BlogPost,
|
||||
Demo,
|
||||
Contact,
|
||||
Classroom,
|
||||
ClassroomParticipant,
|
||||
ClassroomAttandance,
|
||||
ClassroomChat,
|
||||
QuestionTag,
|
||||
QuestionPool,
|
||||
Question,
|
||||
QuestionOption
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using Kurs.Languages.Languages;
|
||||
using Kurs.Platform.Enums;
|
||||
using Volo.Abp.Localization;
|
||||
using Volo.Abp.Reflection;
|
||||
|
||||
|
|
@ -23,177 +24,42 @@ public static class PlatformConsts
|
|||
public static string PhoneEditorOptions = "{\"format\": \"phoneGlobal\", \"mask\":\"(000) 000-0000\", \"maskInvalidMessage\":\"Lütfen geçerli bir telefon numarası girin\", \"useMaskedValue\":false, \"maskRules\": { \"X\": \"[1-9]\" }, \"placeholder\": \"(555) 123-4567\" }";
|
||||
}
|
||||
|
||||
public static class LookUpQueryValues
|
||||
{
|
||||
public static string LanguageKeyValues =
|
||||
$"SELECT " +
|
||||
$"\"{SelectCommandByTableName("LanguageKey")}\".\"Key\", " +
|
||||
$"CONCAT(" +
|
||||
$"\"{SelectCommandByTableName("LanguageKey")}\".\"Key\", " +
|
||||
$"' (', " +
|
||||
$"\"{SelectCommandByTableName("LanguageText")}\".\"Value\", " +
|
||||
$"')'" +
|
||||
$") AS \"Name\" " +
|
||||
$"FROM \"{SelectCommandByTableName("LanguageKey")}\" " +
|
||||
$"LEFT OUTER JOIN \"{SelectCommandByTableName("LanguageText")}\" " +
|
||||
$"ON \"{SelectCommandByTableName("LanguageKey")}\".\"Key\" = \"{SelectCommandByTableName("LanguageText")}\".\"Key\" " +
|
||||
$"AND \"{SelectCommandByTableName("LanguageKey")}\".\"ResourceName\" = \"{SelectCommandByTableName("LanguageText")}\".\"ResourceName\" " +
|
||||
$"WHERE " +
|
||||
$"\"{SelectCommandByTableName("LanguageKey")}\".\"IsDeleted\" = 'false' " +
|
||||
$"AND \"{SelectCommandByTableName("LanguageText")}\".\"IsDeleted\" = 'false' " +
|
||||
$"AND \"{SelectCommandByTableName("LanguageText")}\".\"CultureName\" = 'tr' " +
|
||||
$"ORDER BY \"{SelectCommandByTableName("LanguageKey")}\".\"Key\";";
|
||||
|
||||
public static string CultureValues =
|
||||
$"SELECT " +
|
||||
$"\"CultureName\" AS \"Key\", " +
|
||||
$"\"DisplayName\" AS \"Name\", " +
|
||||
$"\"CreationTime\" " +
|
||||
$"FROM \"{SelectCommandByTableName("Language")}\" " +
|
||||
$"WHERE " +
|
||||
$"\"IsEnabled\" = 'true' " +
|
||||
$"AND \"IsDeleted\" = 'false';";
|
||||
|
||||
public static string CountryValues =
|
||||
$"SELECT " +
|
||||
$"\"{SelectCommandByTableName("Country", Prefix.DbTableDefinition)}\".\"Code\" AS \"Key\", " +
|
||||
$"\"{SelectCommandByTableName("Country", Prefix.DbTableDefinition)}\".\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{SelectCommandByTableName("Country", Prefix.DbTableDefinition)}\" " +
|
||||
$"ORDER BY \"{SelectCommandByTableName("Country", Prefix.DbTableDefinition)}\".\"Name\";";
|
||||
|
||||
public static string CityValues =
|
||||
$"SELECT " +
|
||||
$"\"{SelectCommandByTableName("City", Prefix.DbTableDefinition)}\".\"Code\" AS \"Key\", " +
|
||||
$"\"{SelectCommandByTableName("City", Prefix.DbTableDefinition)}\".\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{SelectCommandByTableName("City", Prefix.DbTableDefinition)}\" " +
|
||||
$"WHERE " +
|
||||
$"\"{SelectCommandByTableName("City", Prefix.DbTableDefinition)}\".\"Country\" = @param0 " +
|
||||
$"OR @param0 IS NULL " +
|
||||
$"ORDER BY \"{SelectCommandByTableName("City", Prefix.DbTableDefinition)}\".\"Name\";";
|
||||
|
||||
public static string DistrictValues =
|
||||
$"SELECT " +
|
||||
$"\"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\".\"Name\" AS \"Key\", " +
|
||||
$"\"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\".\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\" " +
|
||||
$"WHERE " +
|
||||
$"(\"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\".\"Country\" = @param0 OR @param0 IS NULL) " +
|
||||
$"AND (\"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\".\"City\" = @param1 OR @param1 IS NULL) " +
|
||||
$"GROUP BY \"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\".\"Name\" " +
|
||||
$"ORDER BY \"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\".\"Name\";";
|
||||
|
||||
public static string StreetValues =
|
||||
$"SELECT " +
|
||||
$"\"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\".\"Street\" AS \"Key\", " +
|
||||
$"\"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\".\"Street\" AS \"Name\" " +
|
||||
$"FROM \"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\" " +
|
||||
$"WHERE " +
|
||||
$"(\"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\".\"Country\" = @param0 OR @param0 IS NULL) " +
|
||||
$"AND (\"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\".\"City\" = @param1 OR @param1 IS NULL) " +
|
||||
$"AND (\"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\".\"Name\" = @param2 OR @param2 IS NULL) " +
|
||||
$"GROUP BY \"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\".\"Street\" " +
|
||||
$"ORDER BY \"{SelectCommandByTableName("District", Prefix.DbTableDefinition)}\".\"Street\";";
|
||||
|
||||
public static string TenantValues =
|
||||
$"SELECT * FROM (" +
|
||||
$"SELECT NULL AS \"Key\", 'Host' AS \"Name\" " +
|
||||
$"UNION ALL " +
|
||||
$"SELECT " +
|
||||
$"\"AbpTenants\".\"Id\" AS \"Key\", " +
|
||||
$"\"AbpTenants\".\"Name\" AS \"Name\" " +
|
||||
$"FROM \"AbpTenants\"" +
|
||||
$") AS \"List\" " +
|
||||
$"ORDER BY \"Name\"";
|
||||
|
||||
|
||||
public static string BranchValues =
|
||||
$"SELECT \"{SelectCommandByTableName("Branch")}\".\"Id\" AS \"Key\", " +
|
||||
$"\"{SelectCommandByTableName("Branch")}\".\"Name\" as \"Name\" " +
|
||||
$"FROM \"KURS\".\"dbo\".\"{SelectCommandByTableName("Branch")}\" " +
|
||||
$"WHERE \"{SelectCommandByTableName("Branch")}\".\"TenantId\" = '@TENANTID' " +
|
||||
$"AND \"{SelectCommandByTableName("Branch")}\".\"Id\" IN ( " +
|
||||
$"SELECT [BranchId] " +
|
||||
$"FROM [PBranchUsers] " +
|
||||
$"WHERE [UserId] = '@USERID' " +
|
||||
$") " +
|
||||
$"ORDER BY \"{SelectCommandByTableName("Branch")}\".\"Name\"";
|
||||
|
||||
public static string RegistrationTypeValues =
|
||||
$"SELECT " +
|
||||
$"\"{SelectCommandByTableName("RegistrationType", Prefix.DbTableDefinition)}\".\"Id\" AS \"Key\", " +
|
||||
$"\"{SelectCommandByTableName("RegistrationType", Prefix.DbTableDefinition)}\".\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{SelectCommandByTableName("RegistrationType", Prefix.DbTableDefinition)}\" " +
|
||||
$"WHERE " +
|
||||
$"(\"{SelectCommandByTableName("RegistrationType", Prefix.DbTableDefinition)}\".\"BranchId\" = @param0 OR @param0 IS NULL) " +
|
||||
$"ORDER BY \"{SelectCommandByTableName("RegistrationType", Prefix.DbTableDefinition)}\".\"Name\";";
|
||||
|
||||
public static string ClassTypeValues =
|
||||
$"SELECT " +
|
||||
$"\"{SelectCommandByTableName("ClassType", Prefix.DbTableDefinition)}\".\"Id\" AS \"Key\", " +
|
||||
$"\"{SelectCommandByTableName("ClassType", Prefix.DbTableDefinition)}\".\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{SelectCommandByTableName("ClassType", Prefix.DbTableDefinition)}\" " +
|
||||
$"WHERE " +
|
||||
$"(\"{SelectCommandByTableName("ClassType", Prefix.DbTableDefinition)}\".\"BranchId\" = @param0 OR @param0 IS NULL) " +
|
||||
$"ORDER BY \"{SelectCommandByTableName("ClassType", Prefix.DbTableDefinition)}\".\"Name\";";
|
||||
|
||||
public static string PaymentMethodValues =
|
||||
$"SELECT " +
|
||||
$"\"{SelectCommandByTableName("PaymentMethod", Prefix.DbTableWeb)}\".\"Id\" AS \"Key\", " +
|
||||
$"\"{SelectCommandByTableName("PaymentMethod", Prefix.DbTableWeb)}\".\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{SelectCommandByTableName("PaymentMethod", Prefix.DbTableWeb)}\" " +
|
||||
$"ORDER BY \"{SelectCommandByTableName("PaymentMethod", Prefix.DbTableWeb)}\".\"Name\";";
|
||||
|
||||
public static string InstallmentValues =
|
||||
$"SELECT " +
|
||||
$"\"{SelectCommandByTableName("InstallmentOption", Prefix.DbTableWeb)}\".\"Installment\" AS \"Key\", " +
|
||||
$"\"{SelectCommandByTableName("InstallmentOption", Prefix.DbTableWeb)}\".\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{SelectCommandByTableName("InstallmentOption", Prefix.DbTableWeb)}\" " +
|
||||
$"ORDER BY \"{SelectCommandByTableName("InstallmentOption", Prefix.DbTableWeb)}\".\"Installment\";";
|
||||
|
||||
public static string QuestionPoolValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{SelectCommandByTableName("QuestionPool", Prefix.DbTableCoordinator)}\" " +
|
||||
$"WHERE " +
|
||||
$"\"IsDeleted\" = 'false' ";
|
||||
|
||||
public static string QuestionTagValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{SelectCommandByTableName("QuestionTag", Prefix.DbTableCoordinator)}\" " +
|
||||
$"WHERE " +
|
||||
$"\"IsDeleted\" = 'false' ";
|
||||
|
||||
public static string EventCategoryValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{SelectCommandByTableName("EventCategory", Prefix.DbTableDefinition)}\" " +
|
||||
$"WHERE " +
|
||||
$"\"IsDeleted\" = 'false' ";
|
||||
|
||||
public static string EventTypeValues =
|
||||
$"SELECT " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{SelectCommandByTableName("EventType", Prefix.DbTableDefinition)}\" " +
|
||||
$"WHERE " +
|
||||
$"\"IsDeleted\" = 'false' ";
|
||||
}
|
||||
|
||||
public static class Prefix
|
||||
{
|
||||
public const string App = "App";
|
||||
public const string Abp = "Abp";
|
||||
public const string DbTableDefault = "P";
|
||||
public const string DbTableDefinition = "D";
|
||||
public const string DbTableWeb = "W";
|
||||
public const string DbTableCoordinator = "C";
|
||||
public const string DbSchema = null;
|
||||
}
|
||||
|
||||
public static string FullNameTable(TableNameEnum TableName)
|
||||
{
|
||||
return TableNameResolver.GetFullTableName($"{TableName}");
|
||||
}
|
||||
|
||||
public static class TablePrefix
|
||||
{
|
||||
public static string PlatformByName(MenuPrefix MenuGroup, TableNameEnum tableName)
|
||||
{
|
||||
string DbTablePlatform = "P";
|
||||
|
||||
return $"{DbTablePlatform}_{MenuPrefixExtensions.ToPrefix(MenuGroup)}_{tableName}";
|
||||
}
|
||||
|
||||
public static string TenantByName(MenuPrefix MenuGroup, TableNameEnum tableName)
|
||||
{
|
||||
string DbTableTenant = "T";
|
||||
|
||||
return $"{DbTableTenant}_{MenuPrefixExtensions.ToPrefix(MenuGroup)}_{tableName}";
|
||||
}
|
||||
|
||||
public static string BranchByName(MenuPrefix MenuGroup, TableNameEnum tableName)
|
||||
{
|
||||
string DbTableBranch = "B";
|
||||
|
||||
return $"{DbTableBranch}_{MenuPrefixExtensions.ToPrefix(MenuGroup)}_{tableName}";
|
||||
}
|
||||
}
|
||||
|
||||
public static class Permissions
|
||||
{
|
||||
public const string MenuGroup = "MenuGroup";
|
||||
|
|
@ -1559,9 +1425,4 @@ public static class PlatformConsts
|
|||
return ReflectionHelper.GetPublicConstantsRecursively(typeof(IdentityPermissions));
|
||||
}
|
||||
}
|
||||
|
||||
public static string SelectCommandByTableName(string TableName, string prefix = Prefix.DbTableDefault)
|
||||
{
|
||||
return prefix + TableName;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
137
api/src/Kurs.Platform.Domain.Shared/TableNameResolver.cs
Normal file
137
api/src/Kurs.Platform.Domain.Shared/TableNameResolver.cs
Normal file
|
|
@ -0,0 +1,137 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Kurs.Platform.Enums;
|
||||
|
||||
public static class TableNameResolver
|
||||
{
|
||||
// Tüm tabloların hangi prefix tipine ve menü grubuna ait olduğunu belirten harita
|
||||
private static readonly Dictionary<string, (Func<MenuPrefix, TableNameEnum, string> Method, MenuPrefix PrefixGroup)> _map
|
||||
= new(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
// 🔹 MODULE TABLOLARI
|
||||
{ nameof(TableNameEnum.Language), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||
{ nameof(TableNameEnum.LanguageKey), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||
{ nameof(TableNameEnum.LanguageText), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||
{ nameof(TableNameEnum.SettingDefinition), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||
{ nameof(TableNameEnum.Notification), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||
{ nameof(TableNameEnum.NotificationRule), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||
{ nameof(TableNameEnum.BackgroundWorker_MailQueue), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||
{ nameof(TableNameEnum.BackgroundWorker_MailQueueEvents), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||
{ nameof(TableNameEnum.BackgroundWorker_MailQueueTableFormat), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||
{ nameof(TableNameEnum.AiBot), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||
|
||||
// 🔹 PLATFORM TABLOLARI
|
||||
{ nameof(TableNameEnum.Route), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.Menu), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.DataSource), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ListForm), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ListFormField), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ListFormCustomization), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ListFormImport), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ListFormImportExecute), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ContactTag), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ContactTitle), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.Currency), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.CountryGroup), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.Country), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.City), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.District), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.BackgroundWorker), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Platform) },
|
||||
{ nameof(TableNameEnum.ForumCategory), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ForumTopic), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ForumPost), (PlatformConsts.TablePrefix.PlatformByName, MenuPrefix.Saas) },
|
||||
|
||||
// 🔹 TENANT TABLOLARI (GENEL)
|
||||
{ nameof(TableNameEnum.Branch), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.BranchUsers), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.GlobalSearch), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.Activity), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Platform) },
|
||||
{ nameof(TableNameEnum.CustomEntity), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.CustomEntityField), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ApiMigration), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ApiEndpoint), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.CustomEndpoint), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.CustomComponent), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ReportCategory), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ReportTemplate), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ReportParameter), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.ReportGenerated), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.IpRestriction), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
{ nameof(TableNameEnum.Sector), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Saas) },
|
||||
|
||||
// 🔹 ADMINISTRATION
|
||||
{ nameof(TableNameEnum.SkillType), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Skill), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.SkillLevel), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.UomCategory), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Uom), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Behavior), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.EducationStatus), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.EventCategory), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.EventType), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Event), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Disease), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Psychologist), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Vaccine), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Lawyer), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Meal), (PlatformConsts.TablePrefix.BranchByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Document), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Vehicle), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.WorkHour), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.About), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Service), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Product), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.PaymentMethod), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.InstallmentOption), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Order), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.OrderItem), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.BlogCategory), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.BlogPost), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Demo), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
{ nameof(TableNameEnum.Contact), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Administration) },
|
||||
|
||||
// 🔹 PARTICIPANT
|
||||
{ nameof(TableNameEnum.Interesting), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Participant) },
|
||||
{ nameof(TableNameEnum.Source), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Participant) },
|
||||
{ nameof(TableNameEnum.NoteType), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Participant) },
|
||||
{ nameof(TableNameEnum.SalesRejectionReason), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Participant) },
|
||||
{ nameof(TableNameEnum.MeetingMethod), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Participant) },
|
||||
{ nameof(TableNameEnum.MeetingResult), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Participant) },
|
||||
|
||||
// 🔹 COORDINATOR
|
||||
{ nameof(TableNameEnum.Schedule), (PlatformConsts.TablePrefix.BranchByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.ScheduleLesson), (PlatformConsts.TablePrefix.BranchByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.RegistrationType), (PlatformConsts.TablePrefix.BranchByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.RegistrationMethod), (PlatformConsts.TablePrefix.BranchByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.ClassType), (PlatformConsts.TablePrefix.BranchByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.Class), (PlatformConsts.TablePrefix.BranchByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.Level), (PlatformConsts.TablePrefix.BranchByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.LessonPeriod), (PlatformConsts.TablePrefix.BranchByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.ClassCancellationReason), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.Program), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.Classroom), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.ClassroomParticipant), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.ClassroomAttandance), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.ClassroomChat), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.QuestionTag), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.QuestionPool), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.Question), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Coordinator) },
|
||||
{ nameof(TableNameEnum.QuestionOption), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Coordinator) },
|
||||
|
||||
// 🔹 ACCOUNTING
|
||||
{ nameof(TableNameEnum.Bank), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Accounting) },
|
||||
{ nameof(TableNameEnum.BankAccount), (PlatformConsts.TablePrefix.TenantByName, MenuPrefix.Accounting) },
|
||||
};
|
||||
|
||||
public static string GetFullTableName(string tableName)
|
||||
{
|
||||
if (!Enum.TryParse<TableNameEnum>(tableName, out var tableEnum))
|
||||
throw new ArgumentException($"'{tableName}' geçerli bir TableNameEnum değil.");
|
||||
|
||||
if (!_map.TryGetValue(tableName, out var entry))
|
||||
throw new KeyNotFoundException($"'{tableName}' için tablo eşlemesi bulunamadı.");
|
||||
|
||||
return entry.Method(entry.PrefixGroup, tableEnum);
|
||||
}
|
||||
}
|
||||
|
|
@ -25,6 +25,7 @@ using System.Text.Json;
|
|||
|
||||
using static Kurs.Platform.PlatformConsts;
|
||||
using static Kurs.Settings.SettingsConsts;
|
||||
using Kurs.Platform.Enums;
|
||||
|
||||
namespace Kurs.Platform.EntityFrameworkCore;
|
||||
|
||||
|
|
@ -216,7 +217,7 @@ public class PlatformDbContext :
|
|||
//Saas
|
||||
builder.Entity<AiBot>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(AiBot), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.AiBot)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(a => a.BotName).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -224,7 +225,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Branch>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(Branch), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Branch)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(a => a.Code).IsRequired().HasMaxLength(64);
|
||||
|
|
@ -248,7 +249,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<BranchUsers>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(BranchUsers), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.BranchUsers)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.HasKey(x => new { x.UserId, x.BranchId });
|
||||
|
|
@ -259,7 +260,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<GlobalSearch>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(GlobalSearch), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.GlobalSearch)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(a => a.System).HasMaxLength(50);
|
||||
|
|
@ -271,7 +272,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Route>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(Route), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Route)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.HasIndex(x => x.Key).IsUnique();
|
||||
|
|
@ -295,7 +296,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Menu>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(Menu), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Menu)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(a => a.Code).IsRequired().HasMaxLength(100);
|
||||
|
|
@ -314,7 +315,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<DataSource>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(DataSource), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.DataSource)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(a => a.Code).IsRequired().HasMaxLength(100);
|
||||
|
|
@ -324,7 +325,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ListForm>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(ListForm), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ListForm)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention(); // base class props
|
||||
|
||||
// Anahtar
|
||||
|
|
@ -409,7 +410,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ListFormField>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(ListFormField), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ListFormField)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
// Anahtar
|
||||
|
|
@ -457,7 +458,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ListFormCustomization>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(ListFormCustomization), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ListFormCustomization)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(a => a.ListFormCode).IsRequired().HasMaxLength(64);
|
||||
|
|
@ -470,7 +471,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ListFormImport>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(ListFormImport), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ListFormImport)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.ListFormCode).IsRequired().HasMaxLength(64);
|
||||
|
|
@ -482,7 +483,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ListFormImportExecute>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(ListFormImportExecute), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ListFormImportExecute)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.ImportId).IsRequired();
|
||||
|
|
@ -493,7 +494,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Activity>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(Activity), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Activity)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Type).IsRequired();
|
||||
|
|
@ -503,7 +504,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<BackgroundWorker>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(BackgroundWorker), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.BackgroundWorker)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(a => a.Name).IsRequired().HasMaxLength(100);
|
||||
|
|
@ -518,7 +519,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ForumCategory>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(ForumCategory), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ForumCategory)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -536,7 +537,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ForumTopic>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(ForumTopic), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ForumTopic)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Title).IsRequired().HasMaxLength(256);
|
||||
|
|
@ -556,7 +557,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ForumPost>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(ForumPost), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ForumPost)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Content).IsRequired();
|
||||
|
|
@ -577,7 +578,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<CustomEntity>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(CustomEntity), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.CustomEntity)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.HasKey(x => x.Id);
|
||||
|
|
@ -596,7 +597,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<CustomEntityField>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(CustomEntityField), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.CustomEntityField)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.HasKey(x => x.Id);
|
||||
|
|
@ -608,7 +609,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ApiMigration>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(ApiMigration), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ApiMigration)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.HasKey(x => x.Id);
|
||||
|
|
@ -626,7 +627,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ApiEndpoint>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(ApiEndpoint), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ApiEndpoint)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.HasKey(x => x.Id);
|
||||
|
|
@ -644,7 +645,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<CustomEndpoint>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(CustomEndpoint), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.CustomEndpoint)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(a => a.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -659,7 +660,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<CustomComponent>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(CustomComponent), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.CustomComponent)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.HasKey(x => x.Id);
|
||||
|
|
@ -672,7 +673,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ReportCategory>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(ReportCategory), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ReportCategory)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(256);
|
||||
|
|
@ -688,7 +689,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ReportTemplate>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(ReportTemplate), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ReportTemplate)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(256);
|
||||
|
|
@ -709,7 +710,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ReportParameter>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(ReportParameter), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ReportParameter)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.TemplateId).IsRequired();
|
||||
|
|
@ -723,7 +724,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ReportGenerated>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(ReportGenerated), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ReportGenerated)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.TemplateId).IsRequired(false);
|
||||
|
|
@ -735,7 +736,7 @@ public class PlatformDbContext :
|
|||
//Administration
|
||||
builder.Entity<IpRestriction>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefault + nameof(IpRestriction), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.IpRestriction)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(a => a.ResourceType).IsRequired().HasMaxLength(10);
|
||||
|
|
@ -746,7 +747,7 @@ public class PlatformDbContext :
|
|||
// Definitions
|
||||
builder.Entity<Sector>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Sector), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Sector)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -754,7 +755,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ContactTag>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(ContactTag), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ContactTag)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -763,7 +764,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ContactTitle>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(ContactTitle), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ContactTitle)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Title).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -772,7 +773,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Currency>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Currency), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Currency)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Code).IsRequired().HasMaxLength(8);
|
||||
|
|
@ -785,7 +786,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<CountryGroup>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(CountryGroup), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.CountryGroup)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -794,7 +795,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Country>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Country), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Country)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Code).IsRequired().HasMaxLength(8);
|
||||
|
|
@ -806,12 +807,6 @@ public class PlatformDbContext :
|
|||
b.HasIndex(x => x.Code).IsUnique();
|
||||
b.HasIndex(x => x.GroupName);
|
||||
|
||||
// b.HasMany(x => x.Cities)
|
||||
// .WithOne(x => x.Country)
|
||||
// .HasForeignKey(x => x.CountryCode)
|
||||
// .HasPrincipalKey(x => x.Code)
|
||||
// .OnDelete(DeleteBehavior.Cascade);
|
||||
|
||||
b.HasOne<CountryGroup>()
|
||||
.WithMany()
|
||||
.HasPrincipalKey(x => x.Name)
|
||||
|
|
@ -821,7 +816,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<City>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(City), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.City)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Country).HasMaxLength(8);
|
||||
|
|
@ -830,17 +825,11 @@ public class PlatformDbContext :
|
|||
b.Property(x => x.PlateCode).HasMaxLength(20);
|
||||
|
||||
b.HasIndex(x => new { x.Country, x.Code }).IsUnique();
|
||||
|
||||
// b.HasMany(x => x.Districts)
|
||||
// .WithOne(x => x.City)
|
||||
// .HasForeignKey(x => new { x.CountryCode, x.CityCode })
|
||||
// .HasPrincipalKey(x => new { x.Country, x.Code })
|
||||
// .OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
builder.Entity<District>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(District), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.District)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Country).HasMaxLength(8);
|
||||
|
|
@ -855,7 +844,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<SkillType>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(SkillType), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.SkillType)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -875,7 +864,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Skill>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Skill), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Skill)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -884,7 +873,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<SkillLevel>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(SkillLevel), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.SkillLevel)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -895,7 +884,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<UomCategory>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(UomCategory), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.UomCategory)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -904,7 +893,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Uom>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Uom), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Uom)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(64);
|
||||
|
|
@ -920,52 +909,10 @@ public class PlatformDbContext :
|
|||
.OnDelete(DeleteBehavior.Restrict);
|
||||
});
|
||||
|
||||
builder.Entity<Bank>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Bank), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
b.Property(x => x.IdentifierCode).HasMaxLength(64);
|
||||
b.Property(x => x.AddressLine1).HasMaxLength(256);
|
||||
b.Property(x => x.AddressLine2).HasMaxLength(256);
|
||||
b.Property(x => x.District).HasMaxLength(128);
|
||||
b.Property(x => x.City).HasMaxLength(128);
|
||||
b.Property(x => x.PostalCode).HasMaxLength(16);
|
||||
b.Property(x => x.Country).HasMaxLength(128);
|
||||
b.Property(x => x.Phone).HasMaxLength(64);
|
||||
b.Property(x => x.Email).HasMaxLength(128);
|
||||
});
|
||||
|
||||
builder.Entity<BankAccount>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(BankAccount), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.AccountNumber).IsRequired().HasMaxLength(64);
|
||||
b.Property(x => x.AccountOwner).IsRequired().HasMaxLength(256);
|
||||
b.Property(x => x.Company).HasMaxLength(256);
|
||||
|
||||
b.Property(x => x.BankId).IsRequired();
|
||||
b.Property(x => x.CurrencyId);
|
||||
|
||||
b.HasOne(x => x.Bank)
|
||||
.WithMany()
|
||||
.HasPrincipalKey(x => x.Id)
|
||||
.HasForeignKey(x => x.BankId)
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.HasOne(x => x.Currency)
|
||||
.WithMany()
|
||||
.HasPrincipalKey(x => x.Id)
|
||||
.HasForeignKey(x => x.CurrencyId)
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
});
|
||||
|
||||
// School Management
|
||||
builder.Entity<Schedule>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Schedule), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Schedule)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
// Properties
|
||||
|
|
@ -986,7 +933,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ScheduleLesson>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(ScheduleLesson), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ScheduleLesson)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
// Properties
|
||||
|
|
@ -997,7 +944,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Program>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Program), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Program)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(100).IsRequired();
|
||||
|
|
@ -1006,7 +953,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<RegistrationType>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(RegistrationType), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.RegistrationType)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
|
|
@ -1027,7 +974,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<RegistrationMethod>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(RegistrationMethod), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.RegistrationMethod)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(50);
|
||||
|
|
@ -1036,7 +983,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ClassType>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(ClassType), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ClassType)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -1057,7 +1004,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Class>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Class), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Class)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(64);
|
||||
|
|
@ -1066,7 +1013,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Level>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Level), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Level)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.LevelType).HasMaxLength(15);
|
||||
|
|
@ -1077,7 +1024,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Interesting>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Interesting), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Interesting)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
|
|
@ -1086,7 +1033,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Source>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Source), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Source)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
|
|
@ -1095,7 +1042,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<NoteType>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(NoteType), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.NoteType)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
|
|
@ -1103,7 +1050,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Behavior>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Behavior), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Behavior)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -1111,7 +1058,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<EducationStatus>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(EducationStatus), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.EducationStatus)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
|
|
@ -1119,7 +1066,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<EventCategory>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(EventCategory), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.EventCategory)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -1127,7 +1074,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<EventType>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(EventType), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.EventType)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -1135,7 +1082,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Event>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Event), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Event)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(200);
|
||||
|
|
@ -1158,7 +1105,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<SalesRejectionReason>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(SalesRejectionReason), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.SalesRejectionReason)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
|
|
@ -1168,7 +1115,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ClassCancellationReason>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(ClassCancellationReason), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ClassCancellationReason)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
|
|
@ -1177,7 +1124,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<LessonPeriod>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(LessonPeriod), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.LessonPeriod)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
|
|
@ -1191,7 +1138,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<MeetingMethod>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(MeetingMethod), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.MeetingMethod)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
|
|
@ -1201,7 +1148,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<MeetingResult>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(MeetingResult), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.MeetingResult)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
|
|
@ -1211,7 +1158,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Disease>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Disease), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Disease)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -1219,7 +1166,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Psychologist>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Psychologist), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Psychologist)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(100).IsRequired();
|
||||
|
|
@ -1231,7 +1178,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Vaccine>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Vaccine), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Vaccine)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(100).IsRequired();
|
||||
|
|
@ -1239,7 +1186,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Lawyer>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Lawyer), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Lawyer)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(100).IsRequired();
|
||||
|
|
@ -1261,7 +1208,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Meal>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Meal), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Meal)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Date).IsRequired();
|
||||
|
|
@ -1272,7 +1219,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Document>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Document), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Document)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(80).IsRequired();
|
||||
|
|
@ -1280,7 +1227,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Vehicle>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(Vehicle), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Vehicle)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Plate).HasMaxLength(10).IsRequired();
|
||||
|
|
@ -1302,7 +1249,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<WorkHour>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(WorkHour), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.WorkHour)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
|
|
@ -1321,7 +1268,7 @@ public class PlatformDbContext :
|
|||
//Web Site
|
||||
builder.Entity<About>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableWeb + nameof(About), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.About)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.StatsJson).HasColumnType("text");
|
||||
|
|
@ -1331,7 +1278,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Service>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableWeb + nameof(Service), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Service)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Title).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -1355,7 +1302,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Product>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableWeb + nameof(Product), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Product)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.HasKey(x => x.Id);
|
||||
|
|
@ -1369,7 +1316,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<PaymentMethod>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableWeb + nameof(PaymentMethod), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.PaymentMethod)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.HasKey(x => x.Id);
|
||||
|
|
@ -1380,7 +1327,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<InstallmentOption>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableWeb + nameof(InstallmentOption), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.InstallmentOption)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.HasKey(x => x.Id);
|
||||
|
|
@ -1390,7 +1337,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Order>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableWeb + nameof(Order), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Order)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(o => o.Name).HasMaxLength(64);
|
||||
|
|
@ -1421,7 +1368,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<OrderItem>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableWeb + nameof(OrderItem), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.OrderItem)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(i => i.ProductName).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -1431,7 +1378,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<BlogCategory>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableWeb + nameof(BlogCategory), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.BlogCategory)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
|
@ -1444,7 +1391,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<BlogPost>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableWeb + nameof(BlogPost), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.BlogPost)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Title).IsRequired().HasMaxLength(256);
|
||||
|
|
@ -1467,7 +1414,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Demo>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableWeb + nameof(Demo), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Demo)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.OrganizationName).IsRequired().HasMaxLength(256);
|
||||
|
|
@ -1482,7 +1429,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Contact>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableWeb + nameof(Contact), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Contact)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Address).HasMaxLength(500);
|
||||
|
|
@ -1499,7 +1446,7 @@ public class PlatformDbContext :
|
|||
//Coordinator
|
||||
builder.Entity<Classroom>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableCoordinator + nameof(Classroom), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Classroom)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(200);
|
||||
|
|
@ -1528,7 +1475,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ClassroomParticipant>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableCoordinator + nameof(ClassroomParticipant), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ClassroomParticipant)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.UserName).IsRequired().HasMaxLength(100);
|
||||
|
|
@ -1543,7 +1490,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ClassroomAttandance>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableCoordinator + nameof(ClassroomAttandance), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ClassroomAttandance)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.StudentName).IsRequired().HasMaxLength(100);
|
||||
|
|
@ -1555,7 +1502,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<ClassroomChat>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableCoordinator + nameof(ClassroomChat), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ClassroomChat)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.SenderName).IsRequired().HasMaxLength(100);
|
||||
|
|
@ -1568,7 +1515,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<QuestionTag>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableCoordinator + nameof(QuestionTag), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.QuestionTag)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(100);
|
||||
|
|
@ -1579,7 +1526,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<QuestionPool>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableCoordinator + nameof(QuestionPool), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.QuestionPool)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(100);
|
||||
|
|
@ -1589,7 +1536,7 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<Question>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableCoordinator + nameof(Question), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Question)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.QuestionType).IsRequired().HasMaxLength(100);
|
||||
|
|
@ -1606,11 +1553,53 @@ public class PlatformDbContext :
|
|||
|
||||
builder.Entity<QuestionOption>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableCoordinator + nameof(QuestionOption), Prefix.DbSchema);
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.QuestionOption)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Text).HasMaxLength(100);
|
||||
b.Property(x => x.IsCorrect).HasDefaultValue(false);
|
||||
});
|
||||
|
||||
builder.Entity<Bank>(b =>
|
||||
{
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Bank)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
b.Property(x => x.IdentifierCode).HasMaxLength(64);
|
||||
b.Property(x => x.AddressLine1).HasMaxLength(256);
|
||||
b.Property(x => x.AddressLine2).HasMaxLength(256);
|
||||
b.Property(x => x.District).HasMaxLength(128);
|
||||
b.Property(x => x.City).HasMaxLength(128);
|
||||
b.Property(x => x.PostalCode).HasMaxLength(16);
|
||||
b.Property(x => x.Country).HasMaxLength(128);
|
||||
b.Property(x => x.Phone).HasMaxLength(64);
|
||||
b.Property(x => x.Email).HasMaxLength(128);
|
||||
});
|
||||
|
||||
builder.Entity<BankAccount>(b =>
|
||||
{
|
||||
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.BankAccount)), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.AccountNumber).IsRequired().HasMaxLength(64);
|
||||
b.Property(x => x.AccountOwner).IsRequired().HasMaxLength(256);
|
||||
b.Property(x => x.Company).HasMaxLength(256);
|
||||
|
||||
b.Property(x => x.BankId).IsRequired();
|
||||
b.Property(x => x.CurrencyId);
|
||||
|
||||
b.HasOne(x => x.Bank)
|
||||
.WithMany()
|
||||
.HasPrincipalKey(x => x.Id)
|
||||
.HasForeignKey(x => x.BankId)
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.HasOne(x => x.Currency)
|
||||
.WithMany()
|
||||
.HasPrincipalKey(x => x.Id)
|
||||
.HasForeignKey(x => x.CurrencyId)
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
|||
namespace Kurs.Platform.Migrations
|
||||
{
|
||||
[DbContext(typeof(PlatformDbContext))]
|
||||
[Migration("20251018150230_Initial")]
|
||||
[Migration("20251020111635_Initial")]
|
||||
partial class Initial
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -86,7 +86,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PLanguage", (string)null);
|
||||
b.ToTable("P_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("PLanguageKey", (string)null);
|
||||
b.ToTable("P_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("PLanguageText", (string)null);
|
||||
b.ToTable("P_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("PBackgroundWorker_MailQueue", (string)null);
|
||||
b.ToTable("P_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("PBackgroundWorker_MailQueueEvents", (string)null);
|
||||
b.ToTable("P_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("PBackgroundWorker_MailQueueTableFormat", (string)null);
|
||||
b.ToTable("P_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("PNotification", (string)null);
|
||||
b.ToTable("P_P_Notification", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b =>
|
||||
|
|
@ -569,7 +569,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PNotificationRule", (string)null);
|
||||
b.ToTable("P_P_NotificationRule", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.About", b =>
|
||||
|
|
@ -622,7 +622,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WAbout", (string)null);
|
||||
b.ToTable("T_Adm_About", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Activity", b =>
|
||||
|
|
@ -689,7 +689,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PActivity", (string)null);
|
||||
b.ToTable("T_P_Activity", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.AiBot", b =>
|
||||
|
|
@ -704,7 +704,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PAiBot", (string)null);
|
||||
b.ToTable("P_P_AiBot", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ApiEndpoint", b =>
|
||||
|
|
@ -780,7 +780,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("EntityId");
|
||||
|
||||
b.ToTable("PApiEndpoint", (string)null);
|
||||
b.ToTable("T_Sas_ApiEndpoint", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ApiMigration", b =>
|
||||
|
|
@ -841,7 +841,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("EntityId");
|
||||
|
||||
b.ToTable("PApiMigration", (string)null);
|
||||
b.ToTable("T_Sas_ApiMigration", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.BackgroundWorker", b =>
|
||||
|
|
@ -914,7 +914,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PBackgroundWorker", (string)null);
|
||||
b.ToTable("P_P_BackgroundWorker", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Bank", b =>
|
||||
|
|
@ -1002,7 +1002,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DBank", (string)null);
|
||||
b.ToTable("T_Acc_Bank", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.BankAccount", b =>
|
||||
|
|
@ -1076,7 +1076,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("CurrencyId");
|
||||
|
||||
b.ToTable("DBankAccount", (string)null);
|
||||
b.ToTable("T_Acc_BankAccount", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Behavior", b =>
|
||||
|
|
@ -1125,7 +1125,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DBehavior", (string)null);
|
||||
b.ToTable("T_Adm_Behavior", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.BlogCategory", b =>
|
||||
|
|
@ -1198,7 +1198,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("Slug");
|
||||
|
||||
b.ToTable("WBlogCategory", (string)null);
|
||||
b.ToTable("T_Adm_BlogCategory", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.BlogPost", b =>
|
||||
|
|
@ -1302,7 +1302,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("Slug");
|
||||
|
||||
b.ToTable("WBlogPost", (string)null);
|
||||
b.ToTable("T_Adm_BlogPost", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Branch", b =>
|
||||
|
|
@ -1416,7 +1416,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PBranch", (string)null);
|
||||
b.ToTable("T_Sas_Branch", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.BranchUsers", b =>
|
||||
|
|
@ -1436,7 +1436,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("UserId", "BranchId");
|
||||
|
||||
b.ToTable("PBranchUsers", (string)null);
|
||||
b.ToTable("T_Sas_BranchUsers", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.City", b =>
|
||||
|
|
@ -1503,7 +1503,7 @@ namespace Kurs.Platform.Migrations
|
|||
.IsUnique()
|
||||
.HasFilter("[Country] IS NOT NULL");
|
||||
|
||||
b.ToTable("DCity", (string)null);
|
||||
b.ToTable("P_Sas_City", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Class", b =>
|
||||
|
|
@ -1564,7 +1564,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("ClassTypeId");
|
||||
|
||||
b.ToTable("DClass", (string)null);
|
||||
b.ToTable("B_Crd_Class", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ClassCancellationReason", b =>
|
||||
|
|
@ -1617,7 +1617,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DClassCancellationReason", (string)null);
|
||||
b.ToTable("T_Crd_ClassCancellationReason", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ClassType", b =>
|
||||
|
|
@ -1684,7 +1684,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("RegistrationTypeId");
|
||||
|
||||
b.ToTable("DClassType", (string)null);
|
||||
b.ToTable("B_Crd_ClassType", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Classroom", b =>
|
||||
|
|
@ -1780,7 +1780,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("TeacherId");
|
||||
|
||||
b.ToTable("CClassroom", (string)null);
|
||||
b.ToTable("T_Crd_Classroom", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ClassroomAttandance", b =>
|
||||
|
|
@ -1853,7 +1853,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("StudentId");
|
||||
|
||||
b.ToTable("CClassroomAttandance", (string)null);
|
||||
b.ToTable("T_Crd_ClassroomAttandance", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ClassroomChat", b =>
|
||||
|
|
@ -1937,7 +1937,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("Timestamp");
|
||||
|
||||
b.ToTable("CClassroomChat", (string)null);
|
||||
b.ToTable("T_Crd_ClassroomChat", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ClassroomParticipant", b =>
|
||||
|
|
@ -2032,7 +2032,7 @@ namespace Kurs.Platform.Migrations
|
|||
.IsUnique()
|
||||
.HasFilter("[UserId] IS NOT NULL");
|
||||
|
||||
b.ToTable("CClassroomParticipant", (string)null);
|
||||
b.ToTable("T_Crd_ClassroomParticipant", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Contact", b =>
|
||||
|
|
@ -2105,7 +2105,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WContact", (string)null);
|
||||
b.ToTable("T_Adm_Contact", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ContactTag", b =>
|
||||
|
|
@ -2154,7 +2154,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DContactTag", (string)null);
|
||||
b.ToTable("P_Sas_ContactTag", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ContactTitle", b =>
|
||||
|
|
@ -2203,7 +2203,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DContactTitle", (string)null);
|
||||
b.ToTable("P_Sas_ContactTitle", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Country", b =>
|
||||
|
|
@ -2279,7 +2279,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("GroupName");
|
||||
|
||||
b.ToTable("DCountry", (string)null);
|
||||
b.ToTable("P_Sas_Country", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.CountryGroup", b =>
|
||||
|
|
@ -2327,7 +2327,7 @@ namespace Kurs.Platform.Migrations
|
|||
b.HasIndex("Name")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("DCountryGroup", (string)null);
|
||||
b.ToTable("P_Sas_CountryGroup", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Currency", b =>
|
||||
|
|
@ -2393,7 +2393,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DCurrency", (string)null);
|
||||
b.ToTable("P_Sas_Currency", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.CustomComponent", b =>
|
||||
|
|
@ -2461,7 +2461,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PCustomComponent", (string)null);
|
||||
b.ToTable("T_Sas_CustomComponent", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.CustomEndpoint", b =>
|
||||
|
|
@ -2539,7 +2539,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PCustomEndpoint", (string)null);
|
||||
b.ToTable("T_Sas_CustomEndpoint", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.CustomEntity", b =>
|
||||
|
|
@ -2624,7 +2624,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PCustomEntity", (string)null);
|
||||
b.ToTable("T_Sas_CustomEntity", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.CustomEntityField", b =>
|
||||
|
|
@ -2696,7 +2696,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("EntityId");
|
||||
|
||||
b.ToTable("PCustomEntityField", (string)null);
|
||||
b.ToTable("T_Sas_CustomEntityField", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.DataSource", b =>
|
||||
|
|
@ -2748,7 +2748,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PDataSource", (string)null);
|
||||
b.ToTable("P_Sas_DataSource", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Demo", b =>
|
||||
|
|
@ -2828,7 +2828,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WDemo", (string)null);
|
||||
b.ToTable("T_Adm_Demo", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Disease", b =>
|
||||
|
|
@ -2877,7 +2877,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DDisease", (string)null);
|
||||
b.ToTable("T_Adm_Disease", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.District", b =>
|
||||
|
|
@ -2952,7 +2952,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("DDistrict", (string)null);
|
||||
b.ToTable("P_Sas_District", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Document", b =>
|
||||
|
|
@ -3001,7 +3001,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DDocument", (string)null);
|
||||
b.ToTable("T_Adm_Document", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.EducationStatus", b =>
|
||||
|
|
@ -3053,7 +3053,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DEducationStatus", (string)null);
|
||||
b.ToTable("T_Adm_EducationStatus", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Event", b =>
|
||||
|
|
@ -3124,7 +3124,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("TypeId");
|
||||
|
||||
b.ToTable("DEvent", (string)null);
|
||||
b.ToTable("T_Adm_Event", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.EventCategory", b =>
|
||||
|
|
@ -3173,7 +3173,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DEventCategory", (string)null);
|
||||
b.ToTable("T_Adm_EventCategory", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.EventType", b =>
|
||||
|
|
@ -3222,7 +3222,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DEventType", (string)null);
|
||||
b.ToTable("T_Adm_EventType", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.GlobalSearch", b =>
|
||||
|
|
@ -3260,7 +3260,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PGlobalSearch", (string)null);
|
||||
b.ToTable("T_Sas_GlobalSearch", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.InstallmentOption", b =>
|
||||
|
|
@ -3316,7 +3316,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WInstallmentOption", (string)null);
|
||||
b.ToTable("T_Adm_InstallmentOption", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Interesting", b =>
|
||||
|
|
@ -3369,7 +3369,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DInteresting", (string)null);
|
||||
b.ToTable("T_Prt_Interesting", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.IpRestriction", b =>
|
||||
|
|
@ -3427,7 +3427,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PIpRestriction", (string)null);
|
||||
b.ToTable("T_Sas_IpRestriction", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Lawyer", b =>
|
||||
|
|
@ -3524,7 +3524,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DLawyer", (string)null);
|
||||
b.ToTable("T_Adm_Lawyer", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.LessonPeriod", b =>
|
||||
|
|
@ -3596,7 +3596,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DLessonPeriod", (string)null);
|
||||
b.ToTable("B_Crd_LessonPeriod", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Level", b =>
|
||||
|
|
@ -3674,7 +3674,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("ClassTypeId");
|
||||
|
||||
b.ToTable("DLevel", (string)null);
|
||||
b.ToTable("B_Crd_Level", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ListForm", b =>
|
||||
|
|
@ -3966,7 +3966,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PListForm", (string)null);
|
||||
b.ToTable("P_Sas_ListForm", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ListFormCustomization", b =>
|
||||
|
|
@ -4031,7 +4031,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("ListFormCode");
|
||||
|
||||
b.ToTable("PListFormCustomization", (string)null);
|
||||
b.ToTable("P_Sas_ListFormCustomization", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ListFormField", b =>
|
||||
|
|
@ -4198,7 +4198,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("ListFormCode");
|
||||
|
||||
b.ToTable("PListFormField", (string)null);
|
||||
b.ToTable("P_Sas_ListFormField", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ListFormImport", b =>
|
||||
|
|
@ -4258,7 +4258,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("ListFormCode");
|
||||
|
||||
b.ToTable("PListFormImport", (string)null);
|
||||
b.ToTable("P_Sas_ListFormImport", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ListFormImportExecute", b =>
|
||||
|
|
@ -4328,7 +4328,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("ImportId");
|
||||
|
||||
b.ToTable("PListFormImportExecute", (string)null);
|
||||
b.ToTable("P_Sas_ListFormImportExecute", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Meal", b =>
|
||||
|
|
@ -4390,7 +4390,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DMeal", (string)null);
|
||||
b.ToTable("B_Adm_Meal", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.MeetingMethod", b =>
|
||||
|
|
@ -4449,7 +4449,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DMeetingMethod", (string)null);
|
||||
b.ToTable("T_Prt_MeetingMethod", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.MeetingResult", b =>
|
||||
|
|
@ -4506,7 +4506,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DMeetingResult", (string)null);
|
||||
b.ToTable("T_Prt_MeetingResult", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Menu", b =>
|
||||
|
|
@ -4602,7 +4602,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PMenu", (string)null);
|
||||
b.ToTable("P_Sas_Menu", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.NoteType", b =>
|
||||
|
|
@ -4651,7 +4651,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DNoteType", (string)null);
|
||||
b.ToTable("T_Prt_NoteType", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Order", b =>
|
||||
|
|
@ -4784,7 +4784,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WOrder", (string)null);
|
||||
b.ToTable("T_Adm_Order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.OrderItem", b =>
|
||||
|
|
@ -4849,7 +4849,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("OrderId");
|
||||
|
||||
b.ToTable("WOrderItem", (string)null);
|
||||
b.ToTable("T_Adm_OrderItem", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.PaymentMethod", b =>
|
||||
|
|
@ -4906,7 +4906,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WPaymentMethod", (string)null);
|
||||
b.ToTable("T_Adm_PaymentMethod", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Product", b =>
|
||||
|
|
@ -4982,7 +4982,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WProduct", (string)null);
|
||||
b.ToTable("T_Adm_Product", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Program", b =>
|
||||
|
|
@ -5035,7 +5035,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DProgram", (string)null);
|
||||
b.ToTable("T_Crd_Program", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Psychologist", b =>
|
||||
|
|
@ -5100,7 +5100,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DPsychologist", (string)null);
|
||||
b.ToTable("T_Adm_Psychologist", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Question", b =>
|
||||
|
|
@ -5193,7 +5193,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("QuestionPoolId");
|
||||
|
||||
b.ToTable("CQuestion", (string)null);
|
||||
b.ToTable("T_Crd_Question", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.QuestionOption", b =>
|
||||
|
|
@ -5254,7 +5254,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("QuestionId");
|
||||
|
||||
b.ToTable("CQuestionOption", (string)null);
|
||||
b.ToTable("T_Crd_QuestionOption", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.QuestionPool", b =>
|
||||
|
|
@ -5311,7 +5311,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("CQuestionPool", (string)null);
|
||||
b.ToTable("T_Crd_QuestionPool", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.QuestionTag", b =>
|
||||
|
|
@ -5373,7 +5373,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("CQuestionTag", (string)null);
|
||||
b.ToTable("T_Crd_QuestionTag", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.RegistrationMethod", b =>
|
||||
|
|
@ -5433,7 +5433,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("RegistrationTypeId");
|
||||
|
||||
b.ToTable("DRegistrationMethod", (string)null);
|
||||
b.ToTable("B_Crd_RegistrationMethod", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.RegistrationType", b =>
|
||||
|
|
@ -5489,7 +5489,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DRegistrationType", (string)null);
|
||||
b.ToTable("B_Crd_RegistrationType", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ReportCategory", b =>
|
||||
|
|
@ -5546,7 +5546,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PReportCategory", (string)null);
|
||||
b.ToTable("T_Sas_ReportCategory", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ReportGenerated", b =>
|
||||
|
|
@ -5608,7 +5608,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("TemplateId");
|
||||
|
||||
b.ToTable("PReportGenerated", (string)null);
|
||||
b.ToTable("T_Sas_ReportGenerated", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ReportParameter", b =>
|
||||
|
|
@ -5681,7 +5681,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("TemplateId");
|
||||
|
||||
b.ToTable("PReportParameter", (string)null);
|
||||
b.ToTable("T_Sas_ReportParameter", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ReportTemplate", b =>
|
||||
|
|
@ -5747,7 +5747,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("CategoryId");
|
||||
|
||||
b.ToTable("PReportTemplate", (string)null);
|
||||
b.ToTable("T_Sas_ReportTemplate", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Route", b =>
|
||||
|
|
@ -5812,7 +5812,7 @@ namespace Kurs.Platform.Migrations
|
|||
b.HasIndex("Key")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("PRoute", (string)null);
|
||||
b.ToTable("P_Sas_Route", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.SalesRejectionReason", b =>
|
||||
|
|
@ -5869,7 +5869,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DSalesRejectionReason", (string)null);
|
||||
b.ToTable("T_Prt_SalesRejectionReason", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Schedule", b =>
|
||||
|
|
@ -5973,7 +5973,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DSchedule", (string)null);
|
||||
b.ToTable("B_Crd_Schedule", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ScheduleLesson", b =>
|
||||
|
|
@ -6046,7 +6046,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("ScheduleId");
|
||||
|
||||
b.ToTable("DScheduleLesson", (string)null);
|
||||
b.ToTable("B_Crd_ScheduleLesson", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Sector", b =>
|
||||
|
|
@ -6095,7 +6095,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DSector", (string)null);
|
||||
b.ToTable("T_Sas_Sector", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Service", b =>
|
||||
|
|
@ -6158,7 +6158,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WService", (string)null);
|
||||
b.ToTable("T_Adm_Service", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Skill", b =>
|
||||
|
|
@ -6212,7 +6212,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("SkillTypeId");
|
||||
|
||||
b.ToTable("DSkill", (string)null);
|
||||
b.ToTable("T_Adm_Skill", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.SkillLevel", b =>
|
||||
|
|
@ -6276,7 +6276,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("SkillTypeId");
|
||||
|
||||
b.ToTable("DSkillLevel", (string)null);
|
||||
b.ToTable("T_Adm_SkillLevel", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.SkillType", b =>
|
||||
|
|
@ -6325,7 +6325,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DSkillType", (string)null);
|
||||
b.ToTable("T_Adm_SkillType", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Source", b =>
|
||||
|
|
@ -6378,7 +6378,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DSource", (string)null);
|
||||
b.ToTable("T_Prt_Source", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Uom", b =>
|
||||
|
|
@ -6448,7 +6448,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("UomCategoryId");
|
||||
|
||||
b.ToTable("DUom", (string)null);
|
||||
b.ToTable("T_Adm_Uom", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.UomCategory", b =>
|
||||
|
|
@ -6497,7 +6497,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DUomCategory", (string)null);
|
||||
b.ToTable("T_Adm_UomCategory", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Vaccine", b =>
|
||||
|
|
@ -6546,7 +6546,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DVaccine", (string)null);
|
||||
b.ToTable("T_Adm_Vaccine", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Vehicle", b =>
|
||||
|
|
@ -6638,7 +6638,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DVehicle", (string)null);
|
||||
b.ToTable("T_Adm_Vehicle", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.WorkHour", b =>
|
||||
|
|
@ -6718,7 +6718,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DWorkHour", (string)null);
|
||||
b.ToTable("T_Adm_WorkHour", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Forum.ForumCategory", b =>
|
||||
|
|
@ -6808,7 +6808,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("DisplayOrder");
|
||||
|
||||
b.ToTable("PForumCategory", (string)null);
|
||||
b.ToTable("P_Sas_ForumCategory", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Forum.ForumPost", b =>
|
||||
|
|
@ -6878,7 +6878,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("TopicId");
|
||||
|
||||
b.ToTable("PForumPost", (string)null);
|
||||
b.ToTable("P_Sas_ForumPost", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Forum.ForumTopic", b =>
|
||||
|
|
@ -6977,7 +6977,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("LastPostDate");
|
||||
|
||||
b.ToTable("PForumTopic", (string)null);
|
||||
b.ToTable("P_Sas_ForumTopic", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Settings.Entities.SettingDefinition", b =>
|
||||
|
|
@ -7074,7 +7074,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PSettingDefinition", (string)null);
|
||||
b.ToTable("P_P_SettingDefinition", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -83,7 +83,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PLanguage", (string)null);
|
||||
b.ToTable("P_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("PLanguageKey", (string)null);
|
||||
b.ToTable("P_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("PLanguageText", (string)null);
|
||||
b.ToTable("P_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("PBackgroundWorker_MailQueue", (string)null);
|
||||
b.ToTable("P_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("PBackgroundWorker_MailQueueEvents", (string)null);
|
||||
b.ToTable("P_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("PBackgroundWorker_MailQueueTableFormat", (string)null);
|
||||
b.ToTable("P_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("PNotification", (string)null);
|
||||
b.ToTable("P_P_Notification", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b =>
|
||||
|
|
@ -566,7 +566,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PNotificationRule", (string)null);
|
||||
b.ToTable("P_P_NotificationRule", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.About", b =>
|
||||
|
|
@ -619,7 +619,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WAbout", (string)null);
|
||||
b.ToTable("T_Adm_About", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Activity", b =>
|
||||
|
|
@ -686,7 +686,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PActivity", (string)null);
|
||||
b.ToTable("T_P_Activity", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.AiBot", b =>
|
||||
|
|
@ -701,7 +701,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PAiBot", (string)null);
|
||||
b.ToTable("P_P_AiBot", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ApiEndpoint", b =>
|
||||
|
|
@ -777,7 +777,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("EntityId");
|
||||
|
||||
b.ToTable("PApiEndpoint", (string)null);
|
||||
b.ToTable("T_Sas_ApiEndpoint", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ApiMigration", b =>
|
||||
|
|
@ -838,7 +838,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("EntityId");
|
||||
|
||||
b.ToTable("PApiMigration", (string)null);
|
||||
b.ToTable("T_Sas_ApiMigration", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.BackgroundWorker", b =>
|
||||
|
|
@ -911,7 +911,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PBackgroundWorker", (string)null);
|
||||
b.ToTable("P_P_BackgroundWorker", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Bank", b =>
|
||||
|
|
@ -999,7 +999,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DBank", (string)null);
|
||||
b.ToTable("T_Acc_Bank", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.BankAccount", b =>
|
||||
|
|
@ -1073,7 +1073,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("CurrencyId");
|
||||
|
||||
b.ToTable("DBankAccount", (string)null);
|
||||
b.ToTable("T_Acc_BankAccount", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Behavior", b =>
|
||||
|
|
@ -1122,7 +1122,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DBehavior", (string)null);
|
||||
b.ToTable("T_Adm_Behavior", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.BlogCategory", b =>
|
||||
|
|
@ -1195,7 +1195,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("Slug");
|
||||
|
||||
b.ToTable("WBlogCategory", (string)null);
|
||||
b.ToTable("T_Adm_BlogCategory", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.BlogPost", b =>
|
||||
|
|
@ -1299,7 +1299,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("Slug");
|
||||
|
||||
b.ToTable("WBlogPost", (string)null);
|
||||
b.ToTable("T_Adm_BlogPost", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Branch", b =>
|
||||
|
|
@ -1413,7 +1413,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PBranch", (string)null);
|
||||
b.ToTable("T_Sas_Branch", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.BranchUsers", b =>
|
||||
|
|
@ -1433,7 +1433,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("UserId", "BranchId");
|
||||
|
||||
b.ToTable("PBranchUsers", (string)null);
|
||||
b.ToTable("T_Sas_BranchUsers", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.City", b =>
|
||||
|
|
@ -1500,7 +1500,7 @@ namespace Kurs.Platform.Migrations
|
|||
.IsUnique()
|
||||
.HasFilter("[Country] IS NOT NULL");
|
||||
|
||||
b.ToTable("DCity", (string)null);
|
||||
b.ToTable("P_Sas_City", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Class", b =>
|
||||
|
|
@ -1561,7 +1561,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("ClassTypeId");
|
||||
|
||||
b.ToTable("DClass", (string)null);
|
||||
b.ToTable("B_Crd_Class", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ClassCancellationReason", b =>
|
||||
|
|
@ -1614,7 +1614,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DClassCancellationReason", (string)null);
|
||||
b.ToTable("T_Crd_ClassCancellationReason", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ClassType", b =>
|
||||
|
|
@ -1681,7 +1681,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("RegistrationTypeId");
|
||||
|
||||
b.ToTable("DClassType", (string)null);
|
||||
b.ToTable("B_Crd_ClassType", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Classroom", b =>
|
||||
|
|
@ -1777,7 +1777,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("TeacherId");
|
||||
|
||||
b.ToTable("CClassroom", (string)null);
|
||||
b.ToTable("T_Crd_Classroom", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ClassroomAttandance", b =>
|
||||
|
|
@ -1850,7 +1850,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("StudentId");
|
||||
|
||||
b.ToTable("CClassroomAttandance", (string)null);
|
||||
b.ToTable("T_Crd_ClassroomAttandance", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ClassroomChat", b =>
|
||||
|
|
@ -1934,7 +1934,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("Timestamp");
|
||||
|
||||
b.ToTable("CClassroomChat", (string)null);
|
||||
b.ToTable("T_Crd_ClassroomChat", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ClassroomParticipant", b =>
|
||||
|
|
@ -2029,7 +2029,7 @@ namespace Kurs.Platform.Migrations
|
|||
.IsUnique()
|
||||
.HasFilter("[UserId] IS NOT NULL");
|
||||
|
||||
b.ToTable("CClassroomParticipant", (string)null);
|
||||
b.ToTable("T_Crd_ClassroomParticipant", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Contact", b =>
|
||||
|
|
@ -2102,7 +2102,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WContact", (string)null);
|
||||
b.ToTable("T_Adm_Contact", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ContactTag", b =>
|
||||
|
|
@ -2151,7 +2151,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DContactTag", (string)null);
|
||||
b.ToTable("P_Sas_ContactTag", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ContactTitle", b =>
|
||||
|
|
@ -2200,7 +2200,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DContactTitle", (string)null);
|
||||
b.ToTable("P_Sas_ContactTitle", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Country", b =>
|
||||
|
|
@ -2276,7 +2276,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("GroupName");
|
||||
|
||||
b.ToTable("DCountry", (string)null);
|
||||
b.ToTable("P_Sas_Country", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.CountryGroup", b =>
|
||||
|
|
@ -2324,7 +2324,7 @@ namespace Kurs.Platform.Migrations
|
|||
b.HasIndex("Name")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("DCountryGroup", (string)null);
|
||||
b.ToTable("P_Sas_CountryGroup", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Currency", b =>
|
||||
|
|
@ -2390,7 +2390,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DCurrency", (string)null);
|
||||
b.ToTable("P_Sas_Currency", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.CustomComponent", b =>
|
||||
|
|
@ -2458,7 +2458,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PCustomComponent", (string)null);
|
||||
b.ToTable("T_Sas_CustomComponent", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.CustomEndpoint", b =>
|
||||
|
|
@ -2536,7 +2536,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PCustomEndpoint", (string)null);
|
||||
b.ToTable("T_Sas_CustomEndpoint", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.CustomEntity", b =>
|
||||
|
|
@ -2621,7 +2621,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PCustomEntity", (string)null);
|
||||
b.ToTable("T_Sas_CustomEntity", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.CustomEntityField", b =>
|
||||
|
|
@ -2693,7 +2693,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("EntityId");
|
||||
|
||||
b.ToTable("PCustomEntityField", (string)null);
|
||||
b.ToTable("T_Sas_CustomEntityField", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.DataSource", b =>
|
||||
|
|
@ -2745,7 +2745,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PDataSource", (string)null);
|
||||
b.ToTable("P_Sas_DataSource", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Demo", b =>
|
||||
|
|
@ -2825,7 +2825,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WDemo", (string)null);
|
||||
b.ToTable("T_Adm_Demo", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Disease", b =>
|
||||
|
|
@ -2874,7 +2874,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DDisease", (string)null);
|
||||
b.ToTable("T_Adm_Disease", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.District", b =>
|
||||
|
|
@ -2949,7 +2949,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("DDistrict", (string)null);
|
||||
b.ToTable("P_Sas_District", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Document", b =>
|
||||
|
|
@ -2998,7 +2998,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DDocument", (string)null);
|
||||
b.ToTable("T_Adm_Document", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.EducationStatus", b =>
|
||||
|
|
@ -3050,7 +3050,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DEducationStatus", (string)null);
|
||||
b.ToTable("T_Adm_EducationStatus", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Event", b =>
|
||||
|
|
@ -3121,7 +3121,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("TypeId");
|
||||
|
||||
b.ToTable("DEvent", (string)null);
|
||||
b.ToTable("T_Adm_Event", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.EventCategory", b =>
|
||||
|
|
@ -3170,7 +3170,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DEventCategory", (string)null);
|
||||
b.ToTable("T_Adm_EventCategory", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.EventType", b =>
|
||||
|
|
@ -3219,7 +3219,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DEventType", (string)null);
|
||||
b.ToTable("T_Adm_EventType", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.GlobalSearch", b =>
|
||||
|
|
@ -3257,7 +3257,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PGlobalSearch", (string)null);
|
||||
b.ToTable("T_Sas_GlobalSearch", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.InstallmentOption", b =>
|
||||
|
|
@ -3313,7 +3313,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WInstallmentOption", (string)null);
|
||||
b.ToTable("T_Adm_InstallmentOption", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Interesting", b =>
|
||||
|
|
@ -3366,7 +3366,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DInteresting", (string)null);
|
||||
b.ToTable("T_Prt_Interesting", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.IpRestriction", b =>
|
||||
|
|
@ -3424,7 +3424,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PIpRestriction", (string)null);
|
||||
b.ToTable("T_Sas_IpRestriction", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Lawyer", b =>
|
||||
|
|
@ -3521,7 +3521,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DLawyer", (string)null);
|
||||
b.ToTable("T_Adm_Lawyer", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.LessonPeriod", b =>
|
||||
|
|
@ -3593,7 +3593,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DLessonPeriod", (string)null);
|
||||
b.ToTable("B_Crd_LessonPeriod", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Level", b =>
|
||||
|
|
@ -3671,7 +3671,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("ClassTypeId");
|
||||
|
||||
b.ToTable("DLevel", (string)null);
|
||||
b.ToTable("B_Crd_Level", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ListForm", b =>
|
||||
|
|
@ -3963,7 +3963,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PListForm", (string)null);
|
||||
b.ToTable("P_Sas_ListForm", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ListFormCustomization", b =>
|
||||
|
|
@ -4028,7 +4028,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("ListFormCode");
|
||||
|
||||
b.ToTable("PListFormCustomization", (string)null);
|
||||
b.ToTable("P_Sas_ListFormCustomization", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ListFormField", b =>
|
||||
|
|
@ -4195,7 +4195,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("ListFormCode");
|
||||
|
||||
b.ToTable("PListFormField", (string)null);
|
||||
b.ToTable("P_Sas_ListFormField", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ListFormImport", b =>
|
||||
|
|
@ -4255,7 +4255,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("ListFormCode");
|
||||
|
||||
b.ToTable("PListFormImport", (string)null);
|
||||
b.ToTable("P_Sas_ListFormImport", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ListFormImportExecute", b =>
|
||||
|
|
@ -4325,7 +4325,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("ImportId");
|
||||
|
||||
b.ToTable("PListFormImportExecute", (string)null);
|
||||
b.ToTable("P_Sas_ListFormImportExecute", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Meal", b =>
|
||||
|
|
@ -4387,7 +4387,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DMeal", (string)null);
|
||||
b.ToTable("B_Adm_Meal", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.MeetingMethod", b =>
|
||||
|
|
@ -4446,7 +4446,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DMeetingMethod", (string)null);
|
||||
b.ToTable("T_Prt_MeetingMethod", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.MeetingResult", b =>
|
||||
|
|
@ -4503,7 +4503,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DMeetingResult", (string)null);
|
||||
b.ToTable("T_Prt_MeetingResult", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Menu", b =>
|
||||
|
|
@ -4599,7 +4599,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PMenu", (string)null);
|
||||
b.ToTable("P_Sas_Menu", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.NoteType", b =>
|
||||
|
|
@ -4648,7 +4648,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DNoteType", (string)null);
|
||||
b.ToTable("T_Prt_NoteType", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Order", b =>
|
||||
|
|
@ -4781,7 +4781,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WOrder", (string)null);
|
||||
b.ToTable("T_Adm_Order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.OrderItem", b =>
|
||||
|
|
@ -4846,7 +4846,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("OrderId");
|
||||
|
||||
b.ToTable("WOrderItem", (string)null);
|
||||
b.ToTable("T_Adm_OrderItem", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.PaymentMethod", b =>
|
||||
|
|
@ -4903,7 +4903,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WPaymentMethod", (string)null);
|
||||
b.ToTable("T_Adm_PaymentMethod", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Product", b =>
|
||||
|
|
@ -4979,7 +4979,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WProduct", (string)null);
|
||||
b.ToTable("T_Adm_Product", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Program", b =>
|
||||
|
|
@ -5032,7 +5032,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DProgram", (string)null);
|
||||
b.ToTable("T_Crd_Program", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Psychologist", b =>
|
||||
|
|
@ -5097,7 +5097,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DPsychologist", (string)null);
|
||||
b.ToTable("T_Adm_Psychologist", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Question", b =>
|
||||
|
|
@ -5190,7 +5190,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("QuestionPoolId");
|
||||
|
||||
b.ToTable("CQuestion", (string)null);
|
||||
b.ToTable("T_Crd_Question", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.QuestionOption", b =>
|
||||
|
|
@ -5251,7 +5251,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("QuestionId");
|
||||
|
||||
b.ToTable("CQuestionOption", (string)null);
|
||||
b.ToTable("T_Crd_QuestionOption", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.QuestionPool", b =>
|
||||
|
|
@ -5308,7 +5308,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("CQuestionPool", (string)null);
|
||||
b.ToTable("T_Crd_QuestionPool", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.QuestionTag", b =>
|
||||
|
|
@ -5370,7 +5370,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("CQuestionTag", (string)null);
|
||||
b.ToTable("T_Crd_QuestionTag", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.RegistrationMethod", b =>
|
||||
|
|
@ -5430,7 +5430,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("RegistrationTypeId");
|
||||
|
||||
b.ToTable("DRegistrationMethod", (string)null);
|
||||
b.ToTable("B_Crd_RegistrationMethod", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.RegistrationType", b =>
|
||||
|
|
@ -5486,7 +5486,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DRegistrationType", (string)null);
|
||||
b.ToTable("B_Crd_RegistrationType", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ReportCategory", b =>
|
||||
|
|
@ -5543,7 +5543,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PReportCategory", (string)null);
|
||||
b.ToTable("T_Sas_ReportCategory", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ReportGenerated", b =>
|
||||
|
|
@ -5605,7 +5605,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("TemplateId");
|
||||
|
||||
b.ToTable("PReportGenerated", (string)null);
|
||||
b.ToTable("T_Sas_ReportGenerated", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ReportParameter", b =>
|
||||
|
|
@ -5678,7 +5678,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("TemplateId");
|
||||
|
||||
b.ToTable("PReportParameter", (string)null);
|
||||
b.ToTable("T_Sas_ReportParameter", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ReportTemplate", b =>
|
||||
|
|
@ -5744,7 +5744,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("CategoryId");
|
||||
|
||||
b.ToTable("PReportTemplate", (string)null);
|
||||
b.ToTable("T_Sas_ReportTemplate", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Route", b =>
|
||||
|
|
@ -5809,7 +5809,7 @@ namespace Kurs.Platform.Migrations
|
|||
b.HasIndex("Key")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("PRoute", (string)null);
|
||||
b.ToTable("P_Sas_Route", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.SalesRejectionReason", b =>
|
||||
|
|
@ -5866,7 +5866,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DSalesRejectionReason", (string)null);
|
||||
b.ToTable("T_Prt_SalesRejectionReason", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Schedule", b =>
|
||||
|
|
@ -5970,7 +5970,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DSchedule", (string)null);
|
||||
b.ToTable("B_Crd_Schedule", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.ScheduleLesson", b =>
|
||||
|
|
@ -6043,7 +6043,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("ScheduleId");
|
||||
|
||||
b.ToTable("DScheduleLesson", (string)null);
|
||||
b.ToTable("B_Crd_ScheduleLesson", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Sector", b =>
|
||||
|
|
@ -6092,7 +6092,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DSector", (string)null);
|
||||
b.ToTable("T_Sas_Sector", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Service", b =>
|
||||
|
|
@ -6155,7 +6155,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WService", (string)null);
|
||||
b.ToTable("T_Adm_Service", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Skill", b =>
|
||||
|
|
@ -6209,7 +6209,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("SkillTypeId");
|
||||
|
||||
b.ToTable("DSkill", (string)null);
|
||||
b.ToTable("T_Adm_Skill", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.SkillLevel", b =>
|
||||
|
|
@ -6273,7 +6273,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("SkillTypeId");
|
||||
|
||||
b.ToTable("DSkillLevel", (string)null);
|
||||
b.ToTable("T_Adm_SkillLevel", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.SkillType", b =>
|
||||
|
|
@ -6322,7 +6322,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DSkillType", (string)null);
|
||||
b.ToTable("T_Adm_SkillType", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Source", b =>
|
||||
|
|
@ -6375,7 +6375,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DSource", (string)null);
|
||||
b.ToTable("T_Prt_Source", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Uom", b =>
|
||||
|
|
@ -6445,7 +6445,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("UomCategoryId");
|
||||
|
||||
b.ToTable("DUom", (string)null);
|
||||
b.ToTable("T_Adm_Uom", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.UomCategory", b =>
|
||||
|
|
@ -6494,7 +6494,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DUomCategory", (string)null);
|
||||
b.ToTable("T_Adm_UomCategory", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Vaccine", b =>
|
||||
|
|
@ -6543,7 +6543,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DVaccine", (string)null);
|
||||
b.ToTable("T_Adm_Vaccine", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Vehicle", b =>
|
||||
|
|
@ -6635,7 +6635,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DVehicle", (string)null);
|
||||
b.ToTable("T_Adm_Vehicle", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.WorkHour", b =>
|
||||
|
|
@ -6715,7 +6715,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DWorkHour", (string)null);
|
||||
b.ToTable("T_Adm_WorkHour", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Forum.ForumCategory", b =>
|
||||
|
|
@ -6805,7 +6805,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("DisplayOrder");
|
||||
|
||||
b.ToTable("PForumCategory", (string)null);
|
||||
b.ToTable("P_Sas_ForumCategory", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Forum.ForumPost", b =>
|
||||
|
|
@ -6875,7 +6875,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("TopicId");
|
||||
|
||||
b.ToTable("PForumPost", (string)null);
|
||||
b.ToTable("P_Sas_ForumPost", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Forum.ForumTopic", b =>
|
||||
|
|
@ -6974,7 +6974,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasIndex("LastPostDate");
|
||||
|
||||
b.ToTable("PForumTopic", (string)null);
|
||||
b.ToTable("P_Sas_ForumTopic", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Settings.Entities.SettingDefinition", b =>
|
||||
|
|
@ -7071,7 +7071,7 @@ namespace Kurs.Platform.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PSettingDefinition", (string)null);
|
||||
b.ToTable("P_P_SettingDefinition", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public class Program
|
|||
case DatabaseProvider.PostgreSql:
|
||||
loggerConfig = loggerConfig.WriteTo.PostgreSQL(
|
||||
connectionString: configuration.GetConnectionString(DefaultDatabaseProvider),
|
||||
tableName: PlatformConsts.SelectCommandByTableName("LogEntry"),
|
||||
tableName: PlatformConsts.TablePrefix.PlatformByName(Enums.MenuPrefix.Platform, Enums.TableNameEnum.LogEntry),
|
||||
columnOptions: columnWriters,
|
||||
needAutoCreateTable: true,
|
||||
respectCase: true
|
||||
|
|
@ -54,7 +54,7 @@ public class Program
|
|||
case DatabaseProvider.SqlServer:
|
||||
loggerConfig = loggerConfig.WriteTo.MSSqlServer(
|
||||
connectionString: configuration.GetConnectionString(DefaultDatabaseProvider),
|
||||
tableName: PlatformConsts.SelectCommandByTableName("LogEntry"),
|
||||
tableName: PlatformConsts.TablePrefix.PlatformByName(Enums.MenuPrefix.Platform, Enums.TableNameEnum.LogEntry),
|
||||
autoCreateSqlTable: true,
|
||||
columnOptions: new Serilog.Sinks.MSSqlServer.ColumnOptions()
|
||||
);
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ const AnnouncementsModule: React.FC = () => {
|
|||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 p-6">
|
||||
<div className="max-w-7xl mx-auto space-y-6">
|
||||
<div className="mx-auto space-y-6">
|
||||
{/* Header */}
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-gray-900 dark:text-white">
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ const BirthdaysModule: React.FC = () => {
|
|||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 p-6">
|
||||
<div className="max-w-7xl mx-auto space-y-6">
|
||||
<div className="mx-auto space-y-6">
|
||||
{/* Header */}
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-gray-900 dark:text-white">
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ const CafeteriaModule: React.FC = () => {
|
|||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 p-6">
|
||||
<div className="max-w-7xl mx-auto space-y-6">
|
||||
<div className="mx-auto space-y-6">
|
||||
{/* Header */}
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-gray-900 dark:text-white">
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ const IntranetDashboard: React.FC = () => {
|
|||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 p-6">
|
||||
<div className="max-w-7xl mx-auto space-y-6">
|
||||
<div className="mx-auto space-y-6">
|
||||
{/* Header */}
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ const DocumentsModule: React.FC = () => {
|
|||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 p-6">
|
||||
<div className="max-w-7xl mx-auto space-y-6">
|
||||
<div className="mx-auto space-y-6">
|
||||
{/* Header */}
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-gray-900 dark:text-white">
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ const EventsModule: React.FC = () => {
|
|||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 p-6">
|
||||
<div className="max-w-7xl mx-auto space-y-6">
|
||||
<div className="mx-auto space-y-6">
|
||||
{/* Header */}
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-gray-900 dark:text-white">🎊 Etkinlikler</h1>
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ const ExpenseManagement: React.FC = () => {
|
|||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 p-6">
|
||||
<div className="max-w-7xl mx-auto space-y-6">
|
||||
<div className="mx-auto space-y-6">
|
||||
{/* Header */}
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ const LeaveManagement: React.FC = () => {
|
|||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 p-6">
|
||||
<div className="max-w-7xl mx-auto space-y-6">
|
||||
<div className="mx-auto space-y-6">
|
||||
{/* Header */}
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
|
|
@ -251,11 +251,11 @@ const LeaveManagement: React.FC = () => {
|
|||
className="p-6 hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors"
|
||||
>
|
||||
<div className="flex items-start gap-4">
|
||||
<span className="text-3xl">{getTypeIcon(request.type)}</span>
|
||||
<span className="text-3xl">{getTypeIcon(request.leaveType)}</span>
|
||||
<div className="flex-1 min-w-0">
|
||||
<div className="flex items-center gap-3 mb-2">
|
||||
<h3 className="text-base font-semibold text-gray-900 dark:text-white">
|
||||
{getTypeLabel(request.type)}
|
||||
{getTypeLabel(request.leaveType)}
|
||||
</h3>
|
||||
<span className={`px-2.5 py-1 text-xs rounded-full ${getStatusColor(request.status)}`}>
|
||||
{request.status === LeaveStatusEnum.Pending && '⏳ Beklemede'}
|
||||
|
|
@ -285,7 +285,7 @@ const LeaveManagement: React.FC = () => {
|
|||
<div>
|
||||
<p className="text-xs text-gray-500 dark:text-gray-400">Talep Tarihi</p>
|
||||
<p className="text-sm font-medium text-gray-900 dark:text-white">
|
||||
{dayjs(request.createdAt).format('DD MMM YYYY')}
|
||||
{dayjs(request.creationTime).format('DD MMM YYYY')}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,6 @@
|
|||
import React, { useState } from 'react'
|
||||
import { motion, AnimatePresence } from 'framer-motion'
|
||||
import {
|
||||
HiClock,
|
||||
HiCheckCircle,
|
||||
HiPlus,
|
||||
HiXMark,
|
||||
HiFunnel
|
||||
} from 'react-icons/hi2'
|
||||
import { HiClock, HiCheckCircle, HiPlus, HiXMark, HiFunnel } from 'react-icons/hi2'
|
||||
import dayjs from 'dayjs'
|
||||
import 'dayjs/locale/tr'
|
||||
import { mockOvertimeRequests } from '../../../mocks/mockIntranetData'
|
||||
|
|
@ -17,16 +11,16 @@ dayjs.locale('tr')
|
|||
const OvertimeManagement: React.FC = () => {
|
||||
const [requests, setRequests] = useState<HrOvertime[]>(mockOvertimeRequests)
|
||||
const [showCreateModal, setShowCreateModal] = useState(false)
|
||||
const [filterStatus, setFilterStatus] = useState<'all' | 'pending' | 'approved' | 'rejected'>('all')
|
||||
const [filterStatus, setFilterStatus] = useState<'all' | LeaveStatusEnum>('all')
|
||||
|
||||
// Mesai istatistikleri (mock)
|
||||
const overtimeStats = {
|
||||
thisMonth: { total: 24, approved: 20, pending: 4, rejected: 0 },
|
||||
thisYear: { total: 156, approved: 142, pending: 8, rejected: 6 },
|
||||
averagePerMonth: 13
|
||||
averagePerMonth: 13,
|
||||
}
|
||||
|
||||
const filteredRequests = requests.filter(req => {
|
||||
const filteredRequests = requests.filter((req) => {
|
||||
if (filterStatus === 'all') return true
|
||||
return req.status === filterStatus
|
||||
})
|
||||
|
|
@ -35,20 +29,18 @@ const OvertimeManagement: React.FC = () => {
|
|||
const colors = {
|
||||
pending: 'bg-yellow-100 dark:bg-yellow-900/30 text-yellow-700 dark:text-yellow-300',
|
||||
approved: 'bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-300',
|
||||
rejected: 'bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-300'
|
||||
rejected: 'bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-300',
|
||||
}
|
||||
return colors[status as keyof typeof colors]
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 p-6">
|
||||
<div className="max-w-7xl mx-auto space-y-6">
|
||||
<div className="mx-auto space-y-6">
|
||||
{/* Header */}
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-gray-900 dark:text-white">
|
||||
Mesai Yönetimi
|
||||
</h1>
|
||||
<h1 className="text-2xl font-bold text-gray-900 dark:text-white">Mesai Yönetimi</h1>
|
||||
<p className="text-gray-600 dark:text-gray-400 mt-1">
|
||||
Fazla mesai taleplerinizi oluşturun ve takip edin
|
||||
</p>
|
||||
|
|
@ -66,47 +58,35 @@ const OvertimeManagement: React.FC = () => {
|
|||
<div className="grid grid-cols-1 md:grid-cols-4 gap-4">
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg p-6 shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="flex items-center justify-between mb-2">
|
||||
<h3 className="text-sm font-medium text-gray-600 dark:text-gray-400">
|
||||
Bu Ay Toplam
|
||||
</h3>
|
||||
<h3 className="text-sm font-medium text-gray-600 dark:text-gray-400">Bu Ay Toplam</h3>
|
||||
<span className="text-2xl">⏰</span>
|
||||
</div>
|
||||
<p className="text-3xl font-bold text-gray-900 dark:text-white">
|
||||
{overtimeStats.thisMonth.total}
|
||||
</p>
|
||||
<p className="text-sm text-gray-500 dark:text-gray-400 mt-1">
|
||||
saat fazla mesai
|
||||
</p>
|
||||
<p className="text-sm text-gray-500 dark:text-gray-400 mt-1">saat fazla mesai</p>
|
||||
</div>
|
||||
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg p-6 shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="flex items-center justify-between mb-2">
|
||||
<h3 className="text-sm font-medium text-gray-600 dark:text-gray-400">
|
||||
Onaylanan
|
||||
</h3>
|
||||
<h3 className="text-sm font-medium text-gray-600 dark:text-gray-400">Onaylanan</h3>
|
||||
<span className="text-2xl">✅</span>
|
||||
</div>
|
||||
<p className="text-3xl font-bold text-green-600 dark:text-green-400">
|
||||
{overtimeStats.thisMonth.approved}
|
||||
</p>
|
||||
<p className="text-sm text-gray-500 dark:text-gray-400 mt-1">
|
||||
bu ay onaylandı
|
||||
</p>
|
||||
<p className="text-sm text-gray-500 dark:text-gray-400 mt-1">bu ay onaylandı</p>
|
||||
</div>
|
||||
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg p-6 shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="flex items-center justify-between mb-2">
|
||||
<h3 className="text-sm font-medium text-gray-600 dark:text-gray-400">
|
||||
Bekleyen
|
||||
</h3>
|
||||
<h3 className="text-sm font-medium text-gray-600 dark:text-gray-400">Bekleyen</h3>
|
||||
<span className="text-2xl">⏳</span>
|
||||
</div>
|
||||
<p className="text-3xl font-bold text-yellow-600 dark:text-yellow-400">
|
||||
{overtimeStats.thisMonth.pending}
|
||||
</p>
|
||||
<p className="text-sm text-gray-500 dark:text-gray-400 mt-1">
|
||||
onay bekliyor
|
||||
</p>
|
||||
<p className="text-sm text-gray-500 dark:text-gray-400 mt-1">onay bekliyor</p>
|
||||
</div>
|
||||
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg p-6 shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
|
|
@ -119,9 +99,7 @@ const OvertimeManagement: React.FC = () => {
|
|||
<p className="text-3xl font-bold text-blue-600 dark:text-blue-400">
|
||||
{overtimeStats.thisYear.total}
|
||||
</p>
|
||||
<p className="text-sm text-gray-500 dark:text-gray-400 mt-1">
|
||||
saat bu yıl
|
||||
</p>
|
||||
<p className="text-sm text-gray-500 dark:text-gray-400 mt-1">saat bu yıl</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -139,9 +117,9 @@ const OvertimeManagement: React.FC = () => {
|
|||
Tümü
|
||||
</button>
|
||||
<button
|
||||
onClick={() => setFilterStatus('pending')}
|
||||
onClick={() => setFilterStatus(LeaveStatusEnum.Pending)}
|
||||
className={`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors ${
|
||||
filterStatus === 'pending'
|
||||
filterStatus === LeaveStatusEnum.Pending
|
||||
? 'bg-yellow-100 dark:bg-yellow-900/30 text-yellow-700 dark:text-yellow-300'
|
||||
: 'text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800'
|
||||
}`}
|
||||
|
|
@ -149,9 +127,9 @@ const OvertimeManagement: React.FC = () => {
|
|||
Bekleyen
|
||||
</button>
|
||||
<button
|
||||
onClick={() => setFilterStatus('approved')}
|
||||
onClick={() => setFilterStatus(LeaveStatusEnum.Approved)}
|
||||
className={`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors ${
|
||||
filterStatus === 'approved'
|
||||
filterStatus === LeaveStatusEnum.Approved
|
||||
? 'bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-300'
|
||||
: 'text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800'
|
||||
}`}
|
||||
|
|
@ -159,9 +137,9 @@ const OvertimeManagement: React.FC = () => {
|
|||
Onaylanan
|
||||
</button>
|
||||
<button
|
||||
onClick={() => setFilterStatus('rejected')}
|
||||
onClick={() => setFilterStatus(LeaveStatusEnum.Rejected)}
|
||||
className={`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors ${
|
||||
filterStatus === 'rejected'
|
||||
filterStatus === LeaveStatusEnum.Rejected
|
||||
? 'bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-300'
|
||||
: 'text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800'
|
||||
}`}
|
||||
|
|
@ -173,9 +151,7 @@ const OvertimeManagement: React.FC = () => {
|
|||
{/* Mesai Talepleri Listesi */}
|
||||
<div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700">
|
||||
<div className="p-6 border-b border-gray-200 dark:border-gray-700">
|
||||
<h2 className="text-lg font-semibold text-gray-900 dark:text-white">
|
||||
Mesai Talepleri
|
||||
</h2>
|
||||
<h2 className="text-lg font-semibold text-gray-900 dark:text-white">Mesai Talepleri</h2>
|
||||
</div>
|
||||
<div className="divide-y divide-gray-200 dark:divide-gray-700">
|
||||
{filteredRequests.length > 0 ? (
|
||||
|
|
@ -193,7 +169,9 @@ const OvertimeManagement: React.FC = () => {
|
|||
<h3 className="text-base font-semibold text-gray-900 dark:text-white">
|
||||
{dayjs(request.date).format('DD MMMM YYYY dddd')}
|
||||
</h3>
|
||||
<span className={`px-2.5 py-1 text-xs rounded-full ${getStatusColor(request.status)}`}>
|
||||
<span
|
||||
className={`px-2.5 py-1 text-xs rounded-full ${getStatusColor(request.status)}`}
|
||||
>
|
||||
{request.status === LeaveStatusEnum.Pending && '⏳ Beklemede'}
|
||||
{request.status === LeaveStatusEnum.Approved && '✅ Onaylandı'}
|
||||
{request.status === LeaveStatusEnum.Rejected && '❌ Reddedildi'}
|
||||
|
|
@ -241,7 +219,9 @@ const OvertimeManagement: React.FC = () => {
|
|||
<span>
|
||||
{request.approver.fullName} tarafından{' '}
|
||||
{dayjs(request.approvalDate).format('DD MMMM YYYY')} tarihinde{' '}
|
||||
{request.status === LeaveStatusEnum.Approved ? 'onaylandı' : 'reddedildi'}
|
||||
{request.status === LeaveStatusEnum.Approved
|
||||
? 'onaylandı'
|
||||
: 'reddedildi'}
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
|
|
@ -262,7 +242,7 @@ const OvertimeManagement: React.FC = () => {
|
|||
<p className="text-gray-500 dark:text-gray-400">
|
||||
{filterStatus === 'all'
|
||||
? 'Henüz mesai talebi bulunmuyor'
|
||||
: `${filterStatus === 'pending' ? 'Bekleyen' : filterStatus === 'approved' ? 'Onaylanan' : 'Reddedilen'} mesai talebi bulunmuyor`}
|
||||
: `${filterStatus === LeaveStatusEnum.Pending ? 'Bekleyen' : filterStatus === LeaveStatusEnum.Approved ? 'Onaylanan' : 'Reddedilen'} mesai talebi bulunmuyor`}
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ const ReservationsModule: React.FC = () => {
|
|||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 p-6">
|
||||
<div className="max-w-7xl mx-auto space-y-6">
|
||||
<div className="mx-auto space-y-6">
|
||||
{/* Header */}
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ const SurveysModule: React.FC = () => {
|
|||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 p-6">
|
||||
<div className="max-w-7xl mx-auto space-y-6">
|
||||
<div className="mx-auto space-y-6">
|
||||
{/* Header */}
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-gray-900 dark:text-white">
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ const TrainingModule: React.FC = () => {
|
|||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 p-6">
|
||||
<div className="max-w-7xl mx-auto space-y-6">
|
||||
<div className="mx-auto space-y-6">
|
||||
{/* Header */}
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ const VisitorsModule: React.FC = () => {
|
|||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 p-6">
|
||||
<div className="max-w-7xl mx-auto space-y-6">
|
||||
<div className="mx-auto space-y-6">
|
||||
{/* Header */}
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue