diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/PlatformListFormsSeeder.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/PlatformListFormsSeeder.cs index ba94bb1e..a576e199 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/PlatformListFormsSeeder.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/PlatformListFormsSeeder.cs @@ -21404,7 +21404,8 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc new() { Order=1,ColCount=1,ColSpan=2,ItemType="group", Items= [ new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 2, DataField = "Type", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order = 2, DataField = "Type", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxSelectBox }, + new EditingFormItemDto { Order = 3, DataField = "Status", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox }, ] } }), @@ -21425,6 +21426,13 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc Value = "false", CustomValueType = FieldCustomValueTypeEnum.Value } }), + FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "Status", + FieldDbType = DbType.String, + Value = "Aktif", + CustomValueType = FieldCustomValueTypeEnum.Value }, + }), } ); @@ -21515,6 +21523,17 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } }), + LookupJson = JsonSerializer.Serialize(new LookupDto { + DataSourceType = UiLookupDataSourceTypeEnum.StaticData, + DisplayExpr = "name", + ValueExpr = "key", + LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] { + new () { Key="Dijital",Name="Dijital" }, + new () { Key="Telefon",Name="Telefon" }, + new () { Key="Fiziksel",Name="Fiziksel" }, + new () { Key="Hibrit",Name="Hibrit" }, + }), + }), ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto { AllowReordering = true, @@ -21532,6 +21551,45 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc { IsPivot = true }) + }, + // Status + new() + { + ListFormCode = listFormMeetingMethod.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Status", + Width = 120, + ListOrderNo = 4, + Visible = true, + IsActive = true, + IsDeleted = false, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } + }), + LookupJson = JsonSerializer.Serialize(new LookupDto { + DataSourceType = UiLookupDataSourceTypeEnum.StaticData, + DisplayExpr = "name", + ValueExpr = "key", + LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] { + new () { Key="Aktif",Name="Aktif" }, + new () { Key="Pasif",Name="Pasif" }, + }), + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Definitions.MeetingMethod + ".Create", + R = AppCodes.Definitions.MeetingMethod, + U = AppCodes.Definitions.MeetingMethod + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true }) } }); #endregion @@ -21641,6 +21699,7 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc [ new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 2, DataField = "Order", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxNumberBox }, + new EditingFormItemDto { Order = 3, DataField = "Status", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox }, ] } }), @@ -21661,6 +21720,13 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc Value = "false", CustomValueType = FieldCustomValueTypeEnum.Value } }), + FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "Status", + FieldDbType = DbType.String, + Value = "Aktif", + CustomValueType = FieldCustomValueTypeEnum.Value }, + }), } ); @@ -21711,8 +21777,6 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc Visible = true, IsActive = true, IsDeleted = false, - SortIndex = 1, - SortDirection = GridColumnOptions.SortOrderAsc, AllowSearch = true, ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } @@ -21748,6 +21812,8 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc IsActive = true, IsDeleted = false, AllowSearch = true, + SortIndex = 1, + SortDirection = GridColumnOptions.SortOrderAsc, ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } }), @@ -21768,6 +21834,45 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc { IsPivot = true }) + }, + // Status + new() + { + ListFormCode = listFormMeetingResult.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Status", + Width = 120, + ListOrderNo = 4, + Visible = true, + IsActive = true, + IsDeleted = false, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } + }), + LookupJson = JsonSerializer.Serialize(new LookupDto { + DataSourceType = UiLookupDataSourceTypeEnum.StaticData, + DisplayExpr = "name", + ValueExpr = "key", + LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] { + new () { Key="Aktif",Name="Aktif" }, + new () { Key="Pasif",Name="Pasif" }, + }), + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Definitions.MeetingResult + ".Create", + R = AppCodes.Definitions.MeetingResult, + U = AppCodes.Definitions.MeetingResult + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true }) } }); #endregion @@ -22380,7 +22485,8 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc new() { Order=1,ColCount=1,ColSpan=2,ItemType="group", Items= [ new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 2, DataField = "Status", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxSelectBox }, + new EditingFormItemDto { Order = 2, DataField = "Category", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxSelectBox }, + new EditingFormItemDto { Order = 3, DataField = "Status", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxSelectBox }, ] } }), @@ -22454,7 +22560,7 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", - Width = 250, + Width = 500, ListOrderNo = 2, Visible = true, IsActive = true, @@ -22483,6 +22589,47 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc IsPivot = true }) }, + // Status + new() + { + ListFormCode = listFormSalesRejectionReason.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Category", + Width = 300, + ListOrderNo = 3, + Visible = true, + IsActive = true, + IsDeleted = false, + LookupJson = JsonSerializer.Serialize(new LookupDto { + DataSourceType = UiLookupDataSourceTypeEnum.StaticData, + DisplayExpr = "name", + ValueExpr = "key", + LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] { + new () { Key="Kişisel",Name="Kişisel" }, + new () { Key="Fiyat / Bütçe",Name="Fiyat / Bütçe" }, + new () { Key="Ürün / Hizmet",Name="Ürün / Hizmet" }, + new () { Key="Rekabet",Name="Rekabet" }, + new () { Key="Zamanlama",Name="Zamanlama" }, + new () { Key="Lokasyon",Name="Lokasyon" }, + new () { Key="İletişim",Name="İletişim" }, + }), + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Definitions.Event + ".Create", + R = AppCodes.Definitions.Event, + U = AppCodes.Definitions.Event + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true }) + }, new() { ListFormCode = listFormSalesRejectionReason.ListFormCode, RoleId = null, @@ -22490,8 +22637,8 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", - Width = 250, - ListOrderNo = 3, + Width = 100, + ListOrderNo = 4, Visible = true, IsActive = true, IsDeleted = false, @@ -26758,10 +26905,11 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc ItemType = "group", Items = [ - new EditingFormItemDto { Order = 2, DataField = "BranchId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order = 3, DataField = "ClassTypeId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order = 4, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 5, DataField = "LevelType", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox }, + new EditingFormItemDto { Order = 1, DataField = "BranchId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 2, DataField = "ClassTypeId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 3, DataField = "LevelType", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox }, + new EditingFormItemDto { Order = 4, DataField = "Order", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxNumberBox}, + new EditingFormItemDto { Order = 5, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 6, DataField = "LessonCount", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxNumberBox }, new EditingFormItemDto { Order = 7, DataField = "LessonDuration", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxNumberBox }, new EditingFormItemDto { Order = 8, DataField = "MonthlyPaymentRate", ColSpan = 1, EditorType2 = EditorTypes.dxNumberBox }, @@ -26895,40 +27043,6 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc }), PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true }) }, - // Name - new() - { - ListFormCode = listFormLevel.ListFormCode, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Name", - Width = 180, - ListOrderNo = 4, - Visible = true, - IsActive = true, - IsDeleted = false, - SortIndex = 1, - SortDirection = GridColumnOptions.SortOrderAsc, - AllowSearch = true, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] - { - new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Definitions.Level + ".Create", - R = AppCodes.Definitions.Level, - U = AppCodes.Definitions.Level + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true }) - }, // LevelType new() { @@ -26937,7 +27051,7 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc SourceDbType = DbType.String, FieldName = "LevelType", Width = 150, - ListOrderNo = 5, + ListOrderNo = 4, Visible = true, IsActive = true, IsDeleted = false, @@ -26969,6 +27083,72 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc }), PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true }) }, + // Order + new() + { + ListFormCode = listFormLevel.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Int32, + FieldName = "Order", + Width = 180, + ListOrderNo = 5, + Visible = true, + IsActive = true, + IsDeleted = false, + SortIndex = 1, + SortDirection = GridColumnOptions.SortOrderAsc, + AllowSearch = true, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] + { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Definitions.Level + ".Create", + R = AppCodes.Definitions.Level, + U = AppCodes.Definitions.Level + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true }) + }, + // Name + new() + { + ListFormCode = listFormLevel.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Name", + Width = 180, + ListOrderNo = 6, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] + { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Definitions.Level + ".Create", + R = AppCodes.Definitions.Level, + U = AppCodes.Definitions.Level + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true }) + }, // LessonCount new() { @@ -26977,7 +27157,7 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc SourceDbType = DbType.Int32, FieldName = "LessonCount", Width = 120, - ListOrderNo = 6, + ListOrderNo = 7, Visible = true, IsActive = true, IsDeleted = false, @@ -27004,7 +27184,7 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc SourceDbType = DbType.Int32, FieldName = "LessonDuration", Width = 120, - ListOrderNo = 7, + ListOrderNo = 8, Visible = true, IsActive = true, IsDeleted = false, @@ -27031,7 +27211,7 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc SourceDbType = DbType.Decimal, FieldName = "MonthlyPaymentRate", Width = 150, - ListOrderNo = 8, + ListOrderNo = 9, Visible = true, IsActive = true, IsDeleted = false, @@ -27058,7 +27238,7 @@ public class PlatformListFormsSeeder : IDataSeedContributor, ITransientDependenc SourceDbType = DbType.String, FieldName = "Status", Width = 150, - ListOrderNo = 9, + ListOrderNo = 10, Visible = true, IsActive = true, IsDeleted = false, diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/PlatformTenantDataSeeder.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/PlatformTenantDataSeeder.cs index e95a77ed..af028d24 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/PlatformTenantDataSeeder.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/PlatformTenantDataSeeder.cs @@ -1174,6 +1174,7 @@ public class PlatformTenantDataSeeder : IDataSeedContributor, ITransientDependen await _salesRejectionReasonRepository.InsertAsync(new() { Name = item.Name, + Category = item.Category, Status = item.Status }); } @@ -1201,7 +1202,8 @@ public class PlatformTenantDataSeeder : IDataSeedContributor, ITransientDependen await _meetingMethodRepository.InsertAsync(new() { Name = item.Name, - Type = item.Type + Type = item.Type, + Status = item.Status }); } } @@ -1215,7 +1217,8 @@ public class PlatformTenantDataSeeder : IDataSeedContributor, ITransientDependen await _meetingResultRepository.InsertAsync(new() { Name = item.Name, - Order = item.Order + Order = item.Order, + Status = item.Status }); } } diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/TenantData.json b/api/src/Kurs.Platform.DbMigrator/Seeds/TenantData.json index 118cc3c3..debdc750 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/TenantData.json +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/TenantData.json @@ -24990,50 +24990,71 @@ ], "MeetingMethods": [ { - "Name": "EMAIL", - "Type": "SANAL" + "Name": "Gelen Arama", + "Type": "Telefon", + "Status": "Aktif" }, { - "Name": "GELEN ARAMA", - "Type": "TELEFON" + "Name": "Giden Arama", + "Type": "Telefon", + "Status": "Aktif" }, { - "Name": "GİDEN ARAMA", - "Type": "TELEFON" + "Name": "Sms", + "Type": "Telefon", + "Status": "Aktif" }, { - "Name": "SHOW", - "Type": "YÜZYÜZE" + "Name": "Show", + "Type": "Fiziksel", + "Status": "Aktif" }, { - "Name": "WEB", - "Type": "SANAL" + "Name": "Walk-In", + "Type": "Fiziksel", + "Status": "Aktif" }, { - "Name": "WI", - "Type": "YÜZYÜZE" + "Name": "Email", + "Type": "Dijital", + "Status": "Aktif" + }, + { + "Name": "Web", + "Type": "Dijital", + "Status": "Aktif" + }, + { + "Name": "Sosyal Medya", + "Type": "Dijital", + "Status": "Aktif" } ], "MeetingResults": [ { - "Name": "ARANACAK", - "Order": 1 + "Name": "Aranacak", + "Order": 1, + "Status": "Aktif" }, { - "Name": "RANDEVU", - "Order": 2 + "Name": "Randevu", + "Order": 2, + "Status": "Aktif" }, { - "Name": "ERTELEME", - "Order": 3 + "Name": "Erteleme", + "Order": 3, + "Status": "Aktif" }, { - "Name": "ARAYACAK", - "Order": 4 + "Name": "Arayacak", + "Order": 4, + "Status": "Aktif" }, { - "Name": "İPTAL", - "Order": 5 + "Name": "İptal", + "Order": 5, + "Status": "Aktif" } ], "Programs": [ @@ -25110,87 +25131,108 @@ ], "SalesRejectionReasons": [ { - "Name": "ARKADAŞI YOK", - "Status": "Aktif" - }, - { - "Name": "ARTIK DÜŞÜNMÜYOR", - "Status": "Aktif" - }, - { - "Name": "BAŞKA YERDE ÖĞRENCİ", - "Status": "Aktif" - }, - { - "Name": "CİDDİ DEĞİL", - "Status": "Aktif" - }, - { - "Name": "DERS SAATLERİ UYMUYOR", - "Status": "Aktif" - }, - { - "Name": "DÜŞÜNMEK İSTİYOR", - "Status": "Aktif" - }, - { - "Name": "EĞİTİM SİSTEMİNİ BEĞENMEDİ", - "Status": "Aktif" - }, - { - "Name": "EŞİNE SORACAK", - "Status": "Aktif" - }, - { - "Name": "KÜÇÜK ÇOCUK EĞİTİMİ İSTİYOR", - "Status": "Aktif" - }, - { - "Name": "REKABET", - "Status": "Aktif" - }, - { - "Name": "SOSYAL AKTİVİTE YOK", - "Status": "Aktif" - }, - { - "Name": "ŞİRKETİ BAŞKA KURUMLA ANLAŞMALI", + "Name": "FİYAT YÜKSEK", + "Category": "Fiyat / Bütçe", "Status": "Aktif" }, { "Name": "TAKSİT AZ", + "Category": "Fiyat / Bütçe", "Status": "Aktif" }, { - "Name": "ULAŞILAMIYOR", + "Name": "ARKADAŞI YOK", + "Category": "Kişisel", "Status": "Aktif" }, { - "Name": "YERİ UZAK", + "Name": "ARTIK DÜŞÜNMÜYOR", + "Category": "Kişisel", "Status": "Aktif" }, { - "Name": "ZAMANI YOK", + "Name": "BAŞKA YERDE ÖĞRENCİ", + "Category": "Kişisel", + "Status": "Aktif" + }, + { + "Name": "CİDDİ DEĞİL", + "Category": "Kişisel", + "Status": "Aktif" + }, + { + "Name": "DÜŞÜNMEK İSTİYOR", + "Category": "Kişisel", + "Status": "Aktif" + }, + { + "Name": "EŞİNE SORACAK", + "Category": "Kişisel", "Status": "Aktif" }, { "Name": "AİLESİNE SORACAK", + "Category": "Kişisel", "Status": "Aktif" }, { - "Name": "YANLIŞ GİRİŞ", - "Status": "Aktif" - }, - { - "Name": "FİYAT YÜKSEK", + "Name": "KÜÇÜK ÇOCUK EĞİTİMİ İSTİYOR", + "Category": "Kişisel", "Status": "Aktif" }, { "Name": "VEFAT", + "Category": "Kişisel", "Status": "Aktif" }, { "Name": "ARANMAK İSTEMİYOR", + "Category": "Kişisel", + "Status": "Aktif" + }, + { + "Name": "YANLIŞ GİRİŞ", + "Category": "Kişisel", + "Status": "Aktif" + }, + { + "Name": "EĞİTİM SİSTEMİNİ BEĞENMEDİ", + "Category": "Ürün / Hizmet", + "Status": "Aktif" + }, + { + "Name": "SOSYAL AKTİVİTE YOK", + "Category": "Ürün / Hizmet", + "Status": "Aktif" + }, + { + "Name": "REKABET", + "Category": "Rekabet", + "Status": "Aktif" + }, + { + "Name": "ŞİRKETİ BAŞKA KURUMLA ANLAŞMALI", + "Category": "Rekabet", + "Status": "Aktif" + }, + { + "Name": "DERS SAATLERİ UYMUYOR", + "Category": "Zamanlama", + "Status": "Aktif" + }, + { + "Name": "ZAMANI YOK", + "Category": "Zamanlama", + "Status": "Aktif" + }, + { + "Name": "YERİ UZAK", + "Category": "Lokasyon", + "Status": "Aktif" + }, + { + "Name": "ULAŞILAMIYOR", + "Category": "İletişim", "Status": "Aktif" } ], diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/TenantSeederDto.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/TenantSeederDto.cs index a59034a7..faecfcc0 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/TenantSeederDto.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/TenantSeederDto.cs @@ -386,6 +386,7 @@ public class WorkHourSeedDto public class SalesRejectionReasonSeedDto { public string Name { get; set; } + public string Category { get; set; } public string Status { get; set; } } @@ -398,12 +399,14 @@ public class MeetingMethodSeedDto { public string Name { get; set; } public string Type { get; set; } + public string Status { get; set; } } public class MeetingResultSeedDto { public string Name { get; set; } public short? Order { get; set; } + public string Status { get; set; } } public class ClassCancellationReasonSeedDto diff --git a/api/src/Kurs.Platform.Domain/Branch/BranchSeedManager.cs b/api/src/Kurs.Platform.Domain/Branch/BranchSeedManager.cs index 87b5b740..c2b03806 100644 --- a/api/src/Kurs.Platform.Domain/Branch/BranchSeedManager.cs +++ b/api/src/Kurs.Platform.Domain/Branch/BranchSeedManager.cs @@ -191,11 +191,12 @@ public class BranchSeedManager : DomainService TenantId = tenantId, BranchId = branchId, ClassTypeId = classType.Id, - Name = item.Name, LevelType = item.LevelType, + Name = item.Name, + Order = item.Order, LessonCount = item.LessonCount, - Status = item.Status, LessonDuration = item.LessonDuration, + Status = item.Status, MonthlyPaymentRate = item.MonthlyPaymentRate }); diff --git a/api/src/Kurs.Platform.Domain/Branch/BranchSeederDto.cs b/api/src/Kurs.Platform.Domain/Branch/BranchSeederDto.cs index ad8ed69f..0f7a969e 100644 --- a/api/src/Kurs.Platform.Domain/Branch/BranchSeederDto.cs +++ b/api/src/Kurs.Platform.Domain/Branch/BranchSeederDto.cs @@ -45,8 +45,9 @@ public class ClassSeedDto public class LevelSeedDto { public string ClassTypeName { get; set; } - public string Name { get; set; } public string LevelType { get; set; } + public string Name { get; set; } + public int Order { get; set; } public int LessonCount { get; set; } public string Status { get; set; } public int? LessonDuration { get; set; } diff --git a/api/src/Kurs.Platform.Domain/Branch/Seeds/BranchData.json b/api/src/Kurs.Platform.Domain/Branch/Seeds/BranchData.json index 66a84d39..16b29049 100644 --- a/api/src/Kurs.Platform.Domain/Branch/Seeds/BranchData.json +++ b/api/src/Kurs.Platform.Domain/Branch/Seeds/BranchData.json @@ -81,315 +81,350 @@ "ClassTypeName": "3-6 Kişilik", "Name": "A1", "LevelType": "Seviye", + "Order": 1, "LessonCount": 80, - "Status": "Aktif", "LessonDuration": 2, + "Status": "Aktif", "MonthlyPaymentRate": 20.0 }, { "ClassTypeName": "3-6 Kişilik", "Name": "A2", "LevelType": "Seviye", + "Order": 2, "LessonCount": 90, - "Status": "Aktif", "LessonDuration": 3, + "Status": "Aktif", "MonthlyPaymentRate": 30.0 }, { "ClassTypeName": "3-6 Kişilik", "Name": "B1", "LevelType": "Seviye", + "Order": 3, "LessonCount": 90, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "3-6 Kişilik", "Name": "B2", "LevelType": "Seviye", + "Order": 4, "LessonCount": 80, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "3-6 Kişilik", "Name": "C1", "LevelType": "Seviye", + "Order": 5, "LessonCount": 80, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "3-6 Kişilik", "Name": "C2", "LevelType": "Seviye", + "Order": 6, "LessonCount": 80, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "3-6 Kişilik", "Name": "BULATS", "LevelType": "Sınav Eğitimi", + "Order": 1, "LessonCount": 50, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "3-6 Kişilik", "Name": "GMAT", "LevelType": "Sınav Eğitimi", + "Order": 2, "LessonCount": 50, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "3-6 Kişilik", "Name": "YDS", "LevelType": "Sınav Eğitimi", + "Order": 3, "LessonCount": 50, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "3-6 Kişilik", "Name": "ÜDS", "LevelType": "Sınav Eğitimi", + "Order": 4, "LessonCount": 50, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "A1", "LevelType": "Seviye", + "Order": 1, "LessonCount": 80, - "Status": "Aktif", "LessonDuration": 3, + "Status": "Aktif", "MonthlyPaymentRate": 30.0 }, { "ClassTypeName": "5-8 Kişilik", "Name": "A2", "LevelType": "Seviye", + "Order": 2, "LessonCount": 80, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "B1", "LevelType": "Seviye", + "Order": 3, "LessonCount": 80, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "B2", "LevelType": "Seviye", + "Order": 4, "LessonCount": 80, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "C1", "LevelType": "Seviye", + "Order": 5, "LessonCount": 80, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "C2", "LevelType": "Seviye", + "Order": 6, "LessonCount": 80, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "IELTS", "LevelType": "Sınav Eğitimi", + "Order": 1, "LessonCount": 50, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "TOEFL", "LevelType": "Sınav Eğitimi", + "Order": 2, "LessonCount": 50, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "BULATS", "LevelType": "Sınav Eğitimi", + "Order": 3, "LessonCount": 50, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "GMAT", "LevelType": "Sınav Eğitimi", + "Order": 4, "LessonCount": 50, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "YDS", "LevelType": "Sınav Eğitimi", + "Order": 5, "LessonCount": 50, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "PROFICIENCY", "LevelType": "Sınav Eğitimi", + "Order": 6, "LessonCount": 50, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "SAT", "LevelType": "Sınav Eğitimi", + "Order": 7, "LessonCount": 50, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "TOEIC", "LevelType": "Sınav Eğitimi", + "Order": 8, "LessonCount": 50, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "ÜDS", "LevelType": "Sınav Eğitimi", + "Order": 9, "LessonCount": 50, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "5-8 Kişilik", "Name": "SAT2", "LevelType": "Sınav Eğitimi", + "Order": 10, "LessonCount": 50, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "ÖZEL", "Name": "A1", "LevelType": "Seviye", + "Order": 1, "LessonCount": 60, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "ÖZEL", "Name": "A2", "LevelType": "Seviye", + "Order": 2, "LessonCount": 70, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "ÖZEL", "Name": "B1", "LevelType": "Seviye", + "Order": 3, "LessonCount": 80, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "ÖZEL", "Name": "B2", "LevelType": "Seviye", + "Order": 4, "LessonCount": 80, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "ÖZEL", "Name": "C1", "LevelType": "Seviye", + "Order": 5, "LessonCount": 90, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "ÖZEL", "Name": "C2", "LevelType": "Seviye", + "Order": 6, "LessonCount": 90, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "ÖZEL", "Name": "BULATS", "LevelType": "Sınav Eğitimi", + "Order": 1, "LessonCount": 80, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "ÖZEL", "Name": "GMAT", + "Order": 2, "LevelType": "Sınav Eğitimi", "LessonCount": 80, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null }, { "ClassTypeName": "ÖZEL", "Name": "ÜDS", + "Order": 3, "LevelType": "Sınav Eğitimi", "LessonCount": 80, - "Status": "Aktif", "LessonDuration": null, + "Status": "Aktif", "MonthlyPaymentRate": null } ], diff --git a/api/src/Kurs.Platform.Domain/Entities/Branch/Level.cs b/api/src/Kurs.Platform.Domain/Entities/Branch/Level.cs index 23ed7919..e110f4ed 100644 --- a/api/src/Kurs.Platform.Domain/Entities/Branch/Level.cs +++ b/api/src/Kurs.Platform.Domain/Entities/Branch/Level.cs @@ -9,12 +9,13 @@ public class Level : FullAuditedEntity, IMultiTenant public Guid? TenantId { get; set; } public Guid? BranchId { get; set; } - public Guid ClassTypeId { get; set; } // SinifTipiID (FK) - public string Name { get; set; } // SeviyeKodu - public string LevelType { get; set; } // SeviyeTipi - public int LessonCount { get; set; } // DersSayisi - public string Status { get; set; } // Durum - public int? LessonDuration { get; set; } // DersSuresi + public Guid ClassTypeId { get; set; } // SinifTipiID (FK) + public string LevelType { get; set; } // SeviyeTipi + public string Name { get; set; } // SeviyeKodu + public int Order { get; set; } // Sıra Numarası + public int LessonCount { get; set; } // DersSayisi + public string Status { get; set; } // Durum + public int? LessonDuration { get; set; } // DersSuresi public decimal? MonthlyPaymentRate { get; set; } // AylikOdemeYuzdesi // Navigation diff --git a/api/src/Kurs.Platform.Domain/Entities/Tenant/MeetingMethod.cs b/api/src/Kurs.Platform.Domain/Entities/Tenant/MeetingMethod.cs index e74f3013..747f244a 100644 --- a/api/src/Kurs.Platform.Domain/Entities/Tenant/MeetingMethod.cs +++ b/api/src/Kurs.Platform.Domain/Entities/Tenant/MeetingMethod.cs @@ -11,5 +11,7 @@ public class MeetingMethod : FullAuditedEntity, IMultiTenant public string Name { get; set; } // GorusmeSekli public string Type { get; set; } // GorusmeTuru + public string Status { get; set; } + Guid? IMultiTenant.TenantId => TenantId; } diff --git a/api/src/Kurs.Platform.Domain/Entities/Tenant/MeetingResult.cs b/api/src/Kurs.Platform.Domain/Entities/Tenant/MeetingResult.cs index b20179bb..39ad5341 100644 --- a/api/src/Kurs.Platform.Domain/Entities/Tenant/MeetingResult.cs +++ b/api/src/Kurs.Platform.Domain/Entities/Tenant/MeetingResult.cs @@ -11,5 +11,7 @@ public class MeetingResult : FullAuditedEntity, IMultiTenant public string Name { get; set; } // GorusmeSonuc public short? Order { get; set; } // SiraNo + public string Status { get; set; } + Guid? IMultiTenant.TenantId => TenantId; } diff --git a/api/src/Kurs.Platform.Domain/Entities/Tenant/SalesRejectionReason.cs b/api/src/Kurs.Platform.Domain/Entities/Tenant/SalesRejectionReason.cs index 8f9b2d65..fa9b5a60 100644 --- a/api/src/Kurs.Platform.Domain/Entities/Tenant/SalesRejectionReason.cs +++ b/api/src/Kurs.Platform.Domain/Entities/Tenant/SalesRejectionReason.cs @@ -8,8 +8,9 @@ public class SalesRejectionReason : FullAuditedEntity, IMultiTenant { public Guid? TenantId { get; set; } - public string Name { get; set; } // SatisOlmamaSebebi - public string Status { get; set; } // Durum + public string Name { get; set; } // SatisOlmamaSebebi + public string Category { get; set; } // Kategori + public string Status { get; set; } // Durum Guid? IMultiTenant.TenantId => TenantId; } diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs b/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs index 7f637ad1..c55dafb9 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs @@ -1151,6 +1151,7 @@ public class PlatformDbContext : b.ConfigureByConvention(); b.Property(x => x.Name).HasMaxLength(50).IsRequired(); + b.Property(x => x.Category).HasMaxLength(50); b.Property(x => x.Status).HasMaxLength(10); }); @@ -1184,6 +1185,7 @@ public class PlatformDbContext : b.Property(x => x.Name).HasMaxLength(50).IsRequired(); b.Property(x => x.Type).HasMaxLength(50).IsRequired(); + b.Property(x => x.Status).HasMaxLength(10).IsRequired(); }); builder.Entity(b => @@ -1193,6 +1195,7 @@ public class PlatformDbContext : b.Property(x => x.Name).HasMaxLength(50).IsRequired(); b.Property(x => x.Order); + b.Property(x => x.Status).HasMaxLength(10).IsRequired(); }); builder.Entity(b => diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251009092012_Initial.Designer.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251010064947_Initial.Designer.cs similarity index 99% rename from api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251009092012_Initial.Designer.cs rename to api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251010064947_Initial.Designer.cs index 77bd329b..e22be7fb 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251009092012_Initial.Designer.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251010064947_Initial.Designer.cs @@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; namespace Kurs.Platform.Migrations { [DbContext(typeof(PlatformDbContext))] - [Migration("20251009092012_Initial")] + [Migration("20251010064947_Initial")] partial class Initial { /// @@ -3594,6 +3594,9 @@ namespace Kurs.Platform.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("Order") + .HasColumnType("int"); + b.Property("Status") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); @@ -4362,6 +4365,11 @@ namespace Kurs.Platform.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("Status") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("nvarchar(10)"); + b.Property("TenantId") .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); @@ -4419,6 +4427,11 @@ namespace Kurs.Platform.Migrations b.Property("Order") .HasColumnType("smallint"); + b.Property("Status") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("nvarchar(10)"); + b.Property("TenantId") .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); @@ -5455,6 +5468,10 @@ namespace Kurs.Platform.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); + b.Property("Category") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); @@ -8436,7 +8453,8 @@ namespace Kurs.Platform.Migrations .HasColumnName("ExtraProperties"); b.Property("Fax") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("Founder") .HasColumnType("nvarchar(max)"); @@ -8461,7 +8479,8 @@ namespace Kurs.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Mobile") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("Name") .IsRequired() @@ -8478,7 +8497,8 @@ namespace Kurs.Platform.Migrations .HasColumnType("nvarchar(64)"); b.Property("Phone") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("PostalCode") .HasMaxLength(10) diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251009092012_Initial.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251010064947_Initial.cs similarity index 99% rename from api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251009092012_Initial.cs rename to api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251010064947_Initial.cs index cff89675..43efea5a 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251009092012_Initial.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251010064947_Initial.cs @@ -346,12 +346,12 @@ namespace Kurs.Platform.Migrations Country = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), District = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), Email = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - Fax = table.Column(type: "nvarchar(max)", nullable: true), + Fax = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), Founder = table.Column(type: "nvarchar(max)", nullable: true), IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), - Mobile = table.Column(type: "nvarchar(max)", nullable: true), + Mobile = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), OrganizationName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Phone = table.Column(type: "nvarchar(max)", nullable: true), + Phone = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), PostalCode = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), Street = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), TaxOffice = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), @@ -799,6 +799,7 @@ namespace Kurs.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -820,6 +821,7 @@ namespace Kurs.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), Order = table.Column(type: "smallint", nullable: true), + Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), @@ -927,6 +929,7 @@ namespace Kurs.Platform.Migrations Id = table.Column(type: "uniqueidentifier", nullable: false), TenantId = table.Column(type: "uniqueidentifier", nullable: true), Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Category = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), @@ -3229,8 +3232,9 @@ namespace Kurs.Platform.Migrations TenantId = table.Column(type: "uniqueidentifier", nullable: true), BranchId = table.Column(type: "uniqueidentifier", nullable: true), ClassTypeId = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), LevelType = table.Column(type: "nvarchar(15)", maxLength: 15, nullable: true), + Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Order = table.Column(type: "int", nullable: false), LessonCount = table.Column(type: "int", nullable: false), Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), LessonDuration = table.Column(type: "int", nullable: true), diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs index 9c429bf7..64d42300 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs @@ -3591,6 +3591,9 @@ namespace Kurs.Platform.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("Order") + .HasColumnType("int"); + b.Property("Status") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); @@ -4359,6 +4362,11 @@ namespace Kurs.Platform.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("Status") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("nvarchar(10)"); + b.Property("TenantId") .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); @@ -4416,6 +4424,11 @@ namespace Kurs.Platform.Migrations b.Property("Order") .HasColumnType("smallint"); + b.Property("Status") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("nvarchar(10)"); + b.Property("TenantId") .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); @@ -5452,6 +5465,10 @@ namespace Kurs.Platform.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); + b.Property("Category") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); @@ -8433,7 +8450,8 @@ namespace Kurs.Platform.Migrations .HasColumnName("ExtraProperties"); b.Property("Fax") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("Founder") .HasColumnType("nvarchar(max)"); @@ -8458,7 +8476,8 @@ namespace Kurs.Platform.Migrations .HasColumnName("LastModifierId"); b.Property("Mobile") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("Name") .IsRequired() @@ -8475,7 +8494,8 @@ namespace Kurs.Platform.Migrations .HasColumnType("nvarchar(64)"); b.Property("Phone") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); b.Property("PostalCode") .HasMaxLength(10)