From 7961e200b7b44fa6591f5fbac3549cdf75e76a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96ZT=C3=9CRK?= <76204082+iamsedatozturk@users.noreply.github.com> Date: Fri, 27 Jun 2025 10:15:36 +0300 Subject: [PATCH] =?UTF-8?q?Genel=20de=C4=9Fi=C5=9Fiklikler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dtos/LanguageDto.cs | 4 - .../Entities/Language.cs | 3 - .../Contact/{StateDto.cs => CityDto.cs} | 2 +- .../Contact/CountryDto.cs | 4 +- .../Seeds/ListFormsSeeder.cs | 351 +- .../Seeds/PlatformDataSeeder.cs | 9 +- .../Seeds/SeederData.json | 561 +- .../Seeds/SeederDto.cs | 6 +- .../PlatformConsts.cs | 5 +- .../Kurs.Platform.Domain/Entities/Branch.cs | 2 +- .../Entities/{State.cs => City.cs} | 2 +- .../Kurs.Platform.Domain/Entities/Country.cs | 5 +- .../Extensions/AbpTenantExtensions.cs | 11 +- .../EntityFrameworkCore/PlatformDbContext.cs | 8 +- .../PlatformEfCoreEntityExtensionMappings.cs | 11 +- .../20250616063457_BranchEntity.Designer.cs | 3718 ------------- .../Migrations/20250616063457_BranchEntity.cs | 238 - ...18100205_NewDefitinationTables.Designer.cs | 4617 ---------------- .../20250622123512_AddBlog.Designer.cs | 4820 ----------------- .../Migrations/20250622123512_AddBlog.cs | 117 - .../Migrations/20250623190205_AddForum.cs | 168 - ...s => 20250627070749_NewTables.Designer.cs} | 171 +- ...nTables.cs => 20250627070749_NewTables.cs} | 520 +- .../PlatformDbContextModelSnapshot.cs | 167 +- ui/src/views/form/FormDevExpress.tsx | 2 +- 25 files changed, 1199 insertions(+), 14323 deletions(-) rename api/src/Kurs.Platform.Application.Contracts/Contact/{StateDto.cs => CityDto.cs} (81%) rename api/src/Kurs.Platform.Domain/Entities/{State.cs => City.cs} (89%) delete mode 100644 api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250616063457_BranchEntity.Designer.cs delete mode 100644 api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250616063457_BranchEntity.cs delete mode 100644 api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250618100205_NewDefitinationTables.Designer.cs delete mode 100644 api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250622123512_AddBlog.Designer.cs delete mode 100644 api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250622123512_AddBlog.cs delete mode 100644 api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250623190205_AddForum.cs rename api/src/Kurs.Platform.EntityFrameworkCore/Migrations/{20250623190205_AddForum.Designer.cs => 20250627070749_NewTables.Designer.cs} (99%) rename api/src/Kurs.Platform.EntityFrameworkCore/Migrations/{20250618100205_NewDefitinationTables.cs => 20250627070749_NewTables.cs} (51%) diff --git a/api/modules/Kurs.Languages/Kurs.Languages.Application.Contracts/Dtos/LanguageDto.cs b/api/modules/Kurs.Languages/Kurs.Languages.Application.Contracts/Dtos/LanguageDto.cs index 9808f646..673dc196 100644 --- a/api/modules/Kurs.Languages/Kurs.Languages.Application.Contracts/Dtos/LanguageDto.cs +++ b/api/modules/Kurs.Languages/Kurs.Languages.Application.Contracts/Dtos/LanguageDto.cs @@ -17,8 +17,4 @@ public class LanguageDto : FullAuditedEntityDto [Required] public bool IsEnabled { get; set; } - - /// multiple select icin test amacli olarak eklendi - /// - public string MultipleCultures { get; set; } } diff --git a/api/modules/Kurs.Languages/Kurs.Languages.Domain/Entities/Language.cs b/api/modules/Kurs.Languages/Kurs.Languages.Domain/Entities/Language.cs index 1e6c41c8..0e1b23cf 100644 --- a/api/modules/Kurs.Languages/Kurs.Languages.Domain/Entities/Language.cs +++ b/api/modules/Kurs.Languages/Kurs.Languages.Domain/Entities/Language.cs @@ -10,8 +10,5 @@ public class Language : FullAuditedEntity public string DisplayName { get; set; } public bool IsEnabled { get; set; } public string TwoLetterISOLanguageName { get; set; } - /// multiple select icin test amacli olarak eklendi - /// - public string MultipleCultures { get; set; } } diff --git a/api/src/Kurs.Platform.Application.Contracts/Contact/StateDto.cs b/api/src/Kurs.Platform.Application.Contracts/Contact/CityDto.cs similarity index 81% rename from api/src/Kurs.Platform.Application.Contracts/Contact/StateDto.cs rename to api/src/Kurs.Platform.Application.Contracts/Contact/CityDto.cs index 98bb618f..9f3f8f9a 100644 --- a/api/src/Kurs.Platform.Application.Contracts/Contact/StateDto.cs +++ b/api/src/Kurs.Platform.Application.Contracts/Contact/CityDto.cs @@ -3,7 +3,7 @@ using Volo.Abp.Application.Dtos; namespace Kurs.Platform.Contacts; -public class StateDto : AuditedEntityDto +public class CityDto : AuditedEntityDto { public string Name { get; set; } public string Code { get; set; } diff --git a/api/src/Kurs.Platform.Application.Contracts/Contact/CountryDto.cs b/api/src/Kurs.Platform.Application.Contracts/Contact/CountryDto.cs index c66b545d..8bdb3032 100644 --- a/api/src/Kurs.Platform.Application.Contracts/Contact/CountryDto.cs +++ b/api/src/Kurs.Platform.Application.Contracts/Contact/CountryDto.cs @@ -9,10 +9,10 @@ public class CountryDto : AuditedEntityDto public string Code { get; set; } public string Name { get; set; } public string CurrencyCode { get; set; } - public string PhoneCode { get; set; } + public int PhoneCode { get; set; } public string TaxLabel { get; set; } public bool ZipRequired { get; set; } public bool StateRequired { get; set; } - public List States { get; set; } + public List Cities { get; set; } } \ No newline at end of file diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormsSeeder.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormsSeeder.cs index 40ac2e88..9572b0af 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormsSeeder.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormsSeeder.cs @@ -135,7 +135,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency new() { Order = 2, DataField = "UiCultureName", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, new() { Order = 3, DataField = "DisplayName", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, new() { Order = 4, DataField = "IsEnabled", ColSpan = 2, IsRequired = false, EditorType2=EditorTypes.dxCheckBox }, - new() { Order = 5, DataField = "MultipleCultures", ColSpan = 2, IsRequired = false, EditorType2=EditorTypes.dxTagBox }, + // new() { Order = 5, DataField = "MultipleCultures", ColSpan = 2, IsRequired = false, EditorType2=EditorTypes.dxTagBox }, ] } }), @@ -314,48 +314,40 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency Deny = false }), }, - new() - { - ListFormCode = formLanguage.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "MultipleCultures", - Width = 250, - ListOrderNo = 6, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnFilterJson = JsonSerializer.Serialize(new ColumnFilterDto - { - AllowFiltering = true - }), - LookupJson = JsonSerializer.Serialize(new LookupDto - { - DataSourceType = UiLookupDataSourceTypeEnum.Query, - DisplayExpr = "Name", - ValueExpr = "Key", - LookupQuery = $"SELECT \"CultureName\" AS \"Key\", \"DisplayName\" AS \"Name\", \"CreationTime\" FROM \"{DbTablePrefix}Language\" WHERE \"IsEnabled\" = 'true' and \"IsDeleted\" = 'false'" - - //TODO: Tasi grid editingform - // EditorTemplateTagBox = new EditorTagBoxDto() - // { - // ApplyValueMode = "useButtons", - // SearchEnabled = true, - // MaxDisplayedTags = 3 - // } - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Languages.Language + ".Create", - R = AppCodes.Languages.Language, - U = AppCodes.Languages.Language + ".Update", - E = true, - Deny = false - }), - }, + // new() + // { + // ListFormCode = formLanguage.ListFormCode, + // RoleId = null, + // UserId = null, + // CultureName = LanguageCodes.En, + // SourceDbType = DbType.String, + // FieldName = "MultipleCultures", + // Width = 250, + // ListOrderNo = 6, + // Visible = true, + // IsActive = true, + // IsDeleted = false, + // AllowSearch = true, + // ColumnFilterJson = JsonSerializer.Serialize(new ColumnFilterDto + // { + // AllowFiltering = true + // }), + // LookupJson = JsonSerializer.Serialize(new LookupDto + // { + // DataSourceType = UiLookupDataSourceTypeEnum.Query, + // DisplayExpr = "Name", + // ValueExpr = "Key", + // LookupQuery = $"SELECT \"CultureName\" AS \"Key\", \"DisplayName\" AS \"Name\", \"CreationTime\" FROM \"{DbTablePrefix}Language\" WHERE \"IsEnabled\" = 'true' and \"IsDeleted\" = 'false'" + // }), + // PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + // { + // C = AppCodes.Languages.Language + ".Create", + // R = AppCodes.Languages.Language, + // U = AppCodes.Languages.Language + ".Update", + // E = true, + // Deny = false + // }), + // }, ]); } #endregion @@ -448,25 +440,26 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency { 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="InstitutionName", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order=1, DataField="Name", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, + new EditingFormItemDto { Order=2, DataField="InstitutionName", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, new EditingFormItemDto { Order=3, DataField="VknTckn", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxNumberBox }, - new EditingFormItemDto { Order=4, DataField="TaxOffice", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order=4, DataField="TaxOffice", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, new EditingFormItemDto { Order=5, DataField="Mobile", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxNumberBox }, new EditingFormItemDto { Order=6, DataField="Phone", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxNumberBox }, - new EditingFormItemDto { Order=7, DataField="Fax", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order=7, DataField="Fax", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, new EditingFormItemDto { Order=8, DataField="IsActive", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxCheckBox }, ] }, new() { Order=2, ColCount=1, ColSpan=2, ItemType="group", Items = [ - new EditingFormItemDto { Order=1, DataField="Address", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order=2, DataField="Address2", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order=3, DataField="City", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order=4, DataField="District", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order=5, DataField="PostalCode", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order=6, DataField="Email", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order=7, DataField="Website", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order=1, DataField="Address", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, + new EditingFormItemDto { Order=2, DataField="Address2", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, + new EditingFormItemDto { Order=3, DataField="Country", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions="{ \"showClearButton\" : true }" }, + new EditingFormItemDto { Order=4, DataField="City", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, + new EditingFormItemDto { Order=5, DataField="District", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, + new EditingFormItemDto { Order=6, DataField="PostalCode", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, + new EditingFormItemDto { Order=7, DataField="Email", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, + new EditingFormItemDto { Order=8, DataField="Website", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, ] } }), @@ -701,13 +694,20 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "City", + FieldName = "Country", Width = 100, ListOrderNo = 8, Visible = true, IsActive = true, IsDeleted = false, AllowSearch = true, + LookupJson = JsonSerializer.Serialize(new LookupDto + { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = $"SELECT \"{DbTablePrefix}Country\".\"Code\" AS \"Key\", \"{DbTablePrefix}Country\".\"Name\" as \"Name\" FROM \"{DbTablePrefix}Country\" ORDER BY \"{DbTablePrefix}Country\".\"Name\"" + }), PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto { C = TenantManagementPermissions.Tenants.Create, @@ -720,7 +720,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency { IsPivot = true }) - }, + }, new ListFormField { ListFormCode = listFormTenants.ListFormCode, @@ -728,7 +728,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "District", + FieldName = "City", Width = 100, ListOrderNo = 9, Visible = true, @@ -755,7 +755,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "PostalCode", + FieldName = "District", Width = 100, ListOrderNo = 10, Visible = true, @@ -782,8 +782,8 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "Email", - Width = 170, + FieldName = "PostalCode", + Width = 100, ListOrderNo = 11, Visible = true, IsActive = true, @@ -809,7 +809,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "Website", + FieldName = "Email", Width = 170, ListOrderNo = 12, Visible = true, @@ -836,8 +836,8 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "Mobile", - Width = 100, + FieldName = "Website", + Width = 170, ListOrderNo = 13, Visible = true, IsActive = true, @@ -863,7 +863,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "Phone", + FieldName = "Mobile", Width = 100, ListOrderNo = 14, Visible = true, @@ -890,7 +890,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "Fax", + FieldName = "Phone", Width = 100, ListOrderNo = 15, Visible = true, @@ -910,6 +910,33 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency IsPivot = true }) }, + new ListFormField + { + ListFormCode = listFormTenants.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Fax", + Width = 100, + ListOrderNo = 16, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, new ListFormField { ListFormCode = listFormTenants.ListFormCode, @@ -919,7 +946,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency SourceDbType = DbType.Boolean, FieldName = "IsActive", Width = 100, - ListOrderNo = 16, + ListOrderNo = 17, Visible = true, IsActive = true, IsDeleted = false, @@ -1903,14 +1930,13 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency SendOnlyChangedFormValuesUpdate = false, }), EditingFormJson = JsonSerializer.Serialize(new List() { - //["CultureName","UiCultureName","DisplayName","IsEnabled","MultipleCultures"] new() { Order=1,ColCount=1,ColSpan=2,ItemType="group", Items= [ new EditingFormItemDto { Order = 1, DataField = "CultureName", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 2, DataField = "UiCultureName", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 3, DataField = "DisplayName", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 4, DataField = "IsEnabled", ColSpan = 2, IsRequired = false, EditorType2=EditorTypes.dxCheckBox }, - new EditingFormItemDto { Order = 5, DataField = "MultipleCultures", ColSpan = 2, IsRequired = false, EditorType2=EditorTypes.dxTagBox }, + // new EditingFormItemDto { Order = 5, DataField = "MultipleCultures", ColSpan = 2, IsRequired = false, EditorType2=EditorTypes.dxTagBox }, ] } }), @@ -2100,52 +2126,52 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency IsPivot = true }) }, - new ListFormField - { - ListFormCode = listFormLanguages.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "MultipleCultures", - Width = 250, - ListOrderNo = 6, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnFilterJson = JsonSerializer.Serialize(new ColumnFilterDto - { - AllowFiltering = true - }), - LookupJson = JsonSerializer.Serialize(new LookupDto { + // new ListFormField + // { + // ListFormCode = listFormLanguages.ListFormCode, + // RoleId = null, + // UserId = null, + // CultureName = LanguageCodes.En, + // SourceDbType = DbType.String, + // FieldName = "MultipleCultures", + // Width = 250, + // ListOrderNo = 6, + // Visible = true, + // IsActive = true, + // IsDeleted = false, + // AllowSearch = true, + // ColumnFilterJson = JsonSerializer.Serialize(new ColumnFilterDto + // { + // AllowFiltering = true + // }), + // LookupJson = JsonSerializer.Serialize(new LookupDto { - DataSourceType = UiLookupDataSourceTypeEnum.Query, - DisplayExpr = "Name", - ValueExpr = "Key", - LookupQuery = lookupQueryCulture + // DataSourceType = UiLookupDataSourceTypeEnum.Query, + // DisplayExpr = "Name", + // ValueExpr = "Key", + // LookupQuery = lookupQueryCulture - //TODO: Tasi grid editingform - // EditorTemplateTagBox = new EditorTagBoxDto() - // { - // ApplyValueMode = "useButtons", - // SearchEnabled = true, - // MaxDisplayedTags = 3 - // } - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Languages.Language + ".Create", - R = AppCodes.Languages.Language, - U = AppCodes.Languages.Language + ".Update", - E = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, + // //TODO: Tasi grid editingform + // // EditorTemplateTagBox = new EditorTagBoxDto() + // // { + // // ApplyValueMode = "useButtons", + // // SearchEnabled = true, + // // MaxDisplayedTags = 3 + // // } + // }), + // PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + // { + // C = AppCodes.Languages.Language + ".Create", + // R = AppCodes.Languages.Language, + // U = AppCodes.Languages.Language + ".Update", + // E = true, + // Deny = false + // }), + // PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + // { + // IsPivot = true + // }) + // }, }); #endregion @@ -7730,11 +7756,12 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency [ new EditingFormItemDto { Order=1, DataField="Address", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, new EditingFormItemDto { Order=2, DataField="Address2", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, - new EditingFormItemDto { Order=3, DataField="City", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, - new EditingFormItemDto { Order=4, DataField="District", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, - new EditingFormItemDto { Order=5, DataField="PostalCode", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, - new EditingFormItemDto { Order=6, DataField="Email", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, - new EditingFormItemDto { Order=7, DataField="Website", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, + new EditingFormItemDto { Order=3, DataField="Country", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions="{ \"showClearButton\" : true }" }, + new EditingFormItemDto { Order=4, DataField="City", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, + new EditingFormItemDto { Order=5, DataField="District", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, + new EditingFormItemDto { Order=6, DataField="PostalCode", ColSpan=2, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, + new EditingFormItemDto { Order=7, DataField="Email", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, + new EditingFormItemDto { Order=8, DataField="Website", ColSpan=2, IsRequired=true, EditorType2=EditorTypes.dxTextBox, EditorOptions="{ \"showClearButton\" : true }" }, ] } }), @@ -8004,18 +8031,25 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "City", + FieldName = "Country", Width = 100, ListOrderNo = 8, Visible = true, IsActive = true, IsDeleted = false, AllowSearch = true, + LookupJson = JsonSerializer.Serialize(new LookupDto + { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = $"SELECT \"{DbTablePrefix}Country\".\"Code\" AS \"Key\", \"{DbTablePrefix}Country\".\"Name\" as \"Name\" FROM \"{DbTablePrefix}Country\" ORDER BY \"{DbTablePrefix}Country\".\"Name\"" + }), PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto { - C = AppCodes.Branches + ".Create", - R = AppCodes.Branches, - U = AppCodes.Branches + ".Update", + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, E = true, Deny = false }), @@ -8023,7 +8057,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency { IsPivot = true }) - }, + }, new ListFormField { ListFormCode = listFormBranches.ListFormCode, @@ -8031,7 +8065,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "District", + FieldName = "City", Width = 100, ListOrderNo = 9, Visible = true, @@ -8058,7 +8092,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "PostalCode", + FieldName = "District", Width = 100, ListOrderNo = 10, Visible = true, @@ -8085,8 +8119,8 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "Email", - Width = 170, + FieldName = "PostalCode", + Width = 100, ListOrderNo = 11, Visible = true, IsActive = true, @@ -8112,7 +8146,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "Website", + FieldName = "Email", Width = 170, ListOrderNo = 12, Visible = true, @@ -8139,8 +8173,8 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "Mobile", - Width = 100, + FieldName = "Website", + Width = 170, ListOrderNo = 13, Visible = true, IsActive = true, @@ -8166,7 +8200,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "Phone", + FieldName = "Mobile", Width = 100, ListOrderNo = 14, Visible = true, @@ -8193,7 +8227,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, - FieldName = "Fax", + FieldName = "Phone", Width = 100, ListOrderNo = 15, Visible = true, @@ -8213,6 +8247,33 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency IsPivot = true }) }, + new ListFormField + { + ListFormCode = listFormBranches.ListFormCode, + RoleId = null, + UserId = null, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Fax", + Width = 100, + ListOrderNo = 16, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Branches + ".Create", + R = AppCodes.Branches, + U = AppCodes.Branches + ".Update", + E = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, new ListFormField { ListFormCode = listFormBranches.ListFormCode, @@ -8222,7 +8283,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency SourceDbType = DbType.Boolean, FieldName = "IsActive", Width = 100, - ListOrderNo = 16, + ListOrderNo = 17, Visible = true, IsActive = true, IsDeleted = false, @@ -9775,9 +9836,9 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency [ new EditingFormItemDto { Order = 1, DataField = "Code", ColSpan = 2, IsRequired = true, EditorType2 = EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 2, DataField = "Name", ColSpan = 2, IsRequired = true, EditorType2 = EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 3, DataField = "GroupName", ColSpan = 2, IsRequired = false, EditorType2 = EditorTypes.dxTextBox }, + new EditingFormItemDto { Order = 3, DataField = "GroupName", ColSpan = 2, IsRequired = false, EditorType2 = EditorTypes.dxSelectBox }, new EditingFormItemDto { Order = 4, DataField = "CurrencyCode", ColSpan = 2, IsRequired = false, EditorType2 = EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 5, DataField = "PhoneCode", ColSpan = 2, IsRequired = false, EditorType2 = EditorTypes.dxTextBox }, + new EditingFormItemDto { Order = 5, DataField = "PhoneCode", ColSpan = 2, IsRequired = false, EditorType2 = EditorTypes.dxNumberBox }, new EditingFormItemDto { Order = 6, DataField = "TaxLabel", ColSpan = 2, IsRequired = false, EditorType2 = EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 7, DataField = "ZipRequired", ColSpan = 2, IsRequired = false, EditorType2 = EditorTypes.dxCheckBox }, new EditingFormItemDto { Order = 8, DataField = "StateRequired", ColSpan = 2, IsRequired = false, EditorType2 = EditorTypes.dxCheckBox } @@ -9887,6 +9948,13 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency IsActive = true, IsDeleted = false, AllowSearch = false, + LookupJson = JsonSerializer.Serialize(new LookupDto + { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = $"SELECT \"{DbTablePrefix}CountryGroup\".\"Name\" AS \"Key\", \"{DbTablePrefix}CountryGroup\".\"Name\" as \"Name\" FROM \"{DbTablePrefix}CountryGroup\" GROUP BY \"{DbTablePrefix}CountryGroup\".\"Name\" ORDER BY \"{DbTablePrefix}CountryGroup\".\"Name\"" + }), PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto { C = AppCodes.Definitions.Country + ".Create", @@ -9921,7 +9989,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency { ListFormCode = listFormCountry.ListFormCode, CultureName = LanguageCodes.En, - SourceDbType = DbType.String, + SourceDbType = DbType.Int32, FieldName = "PhoneCode", Width = 80, ListOrderNo = 6, @@ -10021,7 +10089,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency IsOrganizationUnit = false, Description = AppCodes.Definitions.State, SelectCommandType = SelectCommandTypeEnum.Table, - SelectCommand = SelectCommandByTableName("State"), + SelectCommand = SelectCommandByTableName("City"), KeyFieldName = "Id", KeyFieldDbSourceType = DbType.Guid, DefaultFilter = "\"IsDeleted\" = 'false'", @@ -10043,7 +10111,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency D = AppCodes.Definitions.State + ".Delete", E = AppCodes.Definitions.State + ".Export" }), - DeleteCommand = $"UPDATE \"{DbTablePrefix}PState\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id", + DeleteCommand = $"UPDATE \"{DbTablePrefix}PCity\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id", DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new[] { new FieldsDefaultValue @@ -10099,7 +10167,7 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency [ new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 2, IsRequired = true, EditorType2 = EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 2, DataField = "Code", ColSpan = 2, IsRequired = true, EditorType2 = EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 3, DataField = "CountryCode", ColSpan = 2, IsRequired = true, EditorType2 = EditorTypes.dxTextBox } + new EditingFormItemDto { Order = 3, DataField = "CountryCode", ColSpan = 2, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox } ] } }), @@ -10206,6 +10274,13 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency IsActive = true, IsDeleted = false, AllowSearch = false, + LookupJson = JsonSerializer.Serialize(new LookupDto + { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = $"SELECT \"{DbTablePrefix}Country\".\"Code\" AS \"Key\", \"{DbTablePrefix}Country\".\"Name\" as \"Name\" FROM \"{DbTablePrefix}Country\" ORDER BY \"{DbTablePrefix}Country\".\"Name\"" + }), ValidationRuleJson = JsonSerializer.Serialize(new[] { new ValidationRuleDto { Type = "required" } diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/PlatformDataSeeder.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/PlatformDataSeeder.cs index 4dc97c83..7e7998ab 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/PlatformDataSeeder.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/PlatformDataSeeder.cs @@ -43,7 +43,7 @@ public class PlatformDataSeeder : IDataSeedContributor, ITransientDependency private readonly IRepository _currencyRepository; private readonly IRepository _countryGroupRepository; private readonly IRepository _countryRepository; - private readonly IRepository _stateRepository; + private readonly IRepository _stateRepository; private readonly IRepository _skillTypeRepository; private readonly IRepository _skillRepository; private readonly IRepository _skillLevelRepository; @@ -73,7 +73,7 @@ public class PlatformDataSeeder : IDataSeedContributor, ITransientDependency IRepository currencyRepository, IRepository countryGroupRepository, IRepository countryRepository, - IRepository stateRepository, + IRepository stateRepository, IRepository skillTypeRepository, IRepository skillRepository, IRepository skillLevelRepository, @@ -235,7 +235,6 @@ public class PlatformDataSeeder : IDataSeedContributor, ITransientDependency DisplayName = item.DisplayName, IsEnabled = item.IsEnabled, TwoLetterISOLanguageName = new CultureInfo(item.CultureName).TwoLetterISOLanguageName, - MultipleCultures = item.MultipleCultures, }); } @@ -471,13 +470,13 @@ public class PlatformDataSeeder : IDataSeedContributor, ITransientDependency } } - foreach (var item in items.States) + foreach (var item in items.Cities) { var exists = await _stateRepository.AnyAsync(x => x.Name == item.Name && x.CountryCode == item.CountryCode); if (!exists) { - await _stateRepository.InsertAsync(new State + await _stateRepository.InsertAsync(new City { Code = item.Code, Name = item.Name, diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/SeederData.json b/api/src/Kurs.Platform.DbMigrator/Seeds/SeederData.json index 56e4a9ab..9f12815b 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/SeederData.json +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/SeederData.json @@ -5,136 +5,119 @@ "uiCultureName": "ar", "displayName": "العربية", "isEnabled": true, - "twoLetterIsoLanguageName": "ar", - "multipleCultures": "tr|ar" + "twoLetterIsoLanguageName": "ar" }, { "cultureName": "cs", "uiCultureName": "cs", "displayName": "Čeština", "isEnabled": true, - "twoLetterIsoLanguageName": "cs", - "multipleCultures": "" + "twoLetterIsoLanguageName": "cs" }, { "cultureName": "de-DE", "uiCultureName": "de-DE", "displayName": "Deutsch", "isEnabled": true, - "twoLetterIsoLanguageName": "de", - "multipleCultures": "" + "twoLetterIsoLanguageName": "de" }, { "cultureName": "en", "uiCultureName": "en", "displayName": "English", "isEnabled": true, - "twoLetterIsoLanguageName": "en", - "multipleCultures": "" + "twoLetterIsoLanguageName": "en" }, { "cultureName": "es", "uiCultureName": "es", "displayName": "Español", "isEnabled": true, - "twoLetterIsoLanguageName": "es", - "multipleCultures": "" + "twoLetterIsoLanguageName": "es" }, { "cultureName": "fi", "uiCultureName": "fi", "displayName": "Finnish", "isEnabled": true, - "twoLetterIsoLanguageName": "fi", - "multipleCultures": "" + "twoLetterIsoLanguageName": "fi" }, { "cultureName": "fr", "uiCultureName": "fr", "displayName": "Français", "isEnabled": true, - "twoLetterIsoLanguageName": "fr", - "multipleCultures": "" + "twoLetterIsoLanguageName": "fr" }, { "cultureName": "hi", "uiCultureName": "hi", "displayName": "Hindi", "isEnabled": true, - "twoLetterIsoLanguageName": "hi", - "multipleCultures": "" + "twoLetterIsoLanguageName": "hi" }, { "cultureName": "hr", "uiCultureName": "hr", "displayName": "Croatian", "isEnabled": true, - "twoLetterIsoLanguageName": "hr", - "multipleCultures": "" + "twoLetterIsoLanguageName": "hr" }, { "cultureName": "hu", "uiCultureName": "hu", "displayName": "Magyar", "isEnabled": true, - "twoLetterIsoLanguageName": "hu", - "multipleCultures": "" + "twoLetterIsoLanguageName": "hu" }, { "cultureName": "it", "uiCultureName": "it", "displayName": "Italiano", "isEnabled": true, - "twoLetterIsoLanguageName": "it", - "multipleCultures": "" + "twoLetterIsoLanguageName": "it" }, { "cultureName": "pt-BR", "uiCultureName": "pt-BR", "displayName": "Português", "isEnabled": true, - "twoLetterIsoLanguageName": "pt", - "multipleCultures": "" + "twoLetterIsoLanguageName": "pt" }, { "cultureName": "ru", "uiCultureName": "ru", "displayName": "Русский", "isEnabled": true, - "twoLetterIsoLanguageName": "ru", - "multipleCultures": "" + "twoLetterIsoLanguageName": "ru" }, { "cultureName": "sk", "uiCultureName": "sk", "displayName": "Slovak", "isEnabled": true, - "twoLetterIsoLanguageName": "sk", - "multipleCultures": "" + "twoLetterIsoLanguageName": "sk" }, { "cultureName": "sl", "uiCultureName": "sl", "displayName": "Slovenščina", "isEnabled": true, - "twoLetterIsoLanguageName": "sl", - "multipleCultures": "" + "twoLetterIsoLanguageName": "sl" }, { "cultureName": "tr", "uiCultureName": "tr", "displayName": "Türkçe", "isEnabled": true, - "twoLetterIsoLanguageName": "tr", - "multipleCultures": "" + "twoLetterIsoLanguageName": "tr" }, { "cultureName": "zh-Hans", "uiCultureName": "zh-Hans", "displayName": "繁體中文", "isEnabled": true, - "twoLetterIsoLanguageName": "zh", - "multipleCultures": "" + "twoLetterIsoLanguageName": "zh" } ], "LanguageTexts": [ @@ -977,7 +960,7 @@ "key": "App.Menus.Manager", "en": "Menu Manager", "tr": "Menü Yöneticisi" - }, + }, { "resourceName": "Platform", "key": "App.Setting", @@ -5050,7 +5033,7 @@ "resourceName": "Platform", "key": "App.Definitions.State", "tr": "Şehirler", - "en": "States" + "en": "Cities" }, { "resourceName": "Platform", @@ -6643,7 +6626,7 @@ "Code": "App.Definitions.State", "DisplayName": "App.Definitions.State", "Order": 7, - "Url": "/list/list-state", + "Url": "/list/list-city", "Icon": "FaFontAwesomeFlag", "RequiredPermissionName": "App.Definitions.State", "IsDisabled": false @@ -7684,7 +7667,7 @@ "DisplayName": "App.Menus.Manager", "IsEnabled": true, "MultiTenancySide": 2 - }, + }, { "GroupName": "App.Notifications.Notification", "Name": "App.Notifications.Notification.Create", @@ -9924,1754 +9907,1754 @@ "Name": "Andorra", "Code": "AD", "CurrencyCode": "EUR", - "PhoneCode": "376", + "PhoneCode": 376, "TaxLabel": "" }, { "Name": "Birleşik Arap Emirlikleri", "Code": "AE", "CurrencyCode": "AED", - "PhoneCode": "971", + "PhoneCode": 971, "TaxLabel": "" }, { "Name": "Afganistan", "Code": "AF", "CurrencyCode": "AFN", - "PhoneCode": "93", + "PhoneCode": 93, "TaxLabel": "" }, { "Name": "Antigua ve Barbuda", "Code": "AG", "CurrencyCode": "USD", - "PhoneCode": "1,268", + "PhoneCode": 1268, "TaxLabel": "" }, { "Name": "Anguilla", "Code": "AI", "CurrencyCode": "USD", - "PhoneCode": "1,264", + "PhoneCode": 1264, "TaxLabel": "" }, { "Name": "Arnavutluk", "Code": "AL", "CurrencyCode": "ALL", - "PhoneCode": "355", + "PhoneCode": 355, "TaxLabel": "" }, { "Name": "Ermenistan", "Code": "AM", "CurrencyCode": "AMD", - "PhoneCode": "374", + "PhoneCode": 374, "TaxLabel": "" }, { "Name": "Angola", "Code": "AO", "CurrencyCode": "AOA", - "PhoneCode": "244", + "PhoneCode": 244, "TaxLabel": "" }, { "Name": "Antartika", "Code": "AQ", "CurrencyCode": "USD", - "PhoneCode": "672", + "PhoneCode": 672, "TaxLabel": "" }, { "Name": "Arjantin", "Code": "AR", "CurrencyCode": "ARS", - "PhoneCode": "54", + "PhoneCode": 54, "TaxLabel": "CUIT" }, { "Name": "Amerikan Samoası", "Code": "AS", "CurrencyCode": "USD", - "PhoneCode": "1,684", + "PhoneCode": 1684, "TaxLabel": "" }, { "Name": "Avusturya", "Code": "AT", "CurrencyCode": "EUR", - "PhoneCode": "43", + "PhoneCode": 43, "TaxLabel": "USt" }, { "Name": "Avustralya", "Code": "AU", "CurrencyCode": "AUD", - "PhoneCode": "61", + "PhoneCode": 61, "TaxLabel": "ABN" }, { "Name": "Aruba", "Code": "AW", "CurrencyCode": "AWG", - "PhoneCode": "297", + "PhoneCode": 297, "TaxLabel": "" }, { "Name": "Aland Adaları", "Code": "AX", "CurrencyCode": "EUR", - "PhoneCode": "358", + "PhoneCode": 358, "TaxLabel": "" }, { "Name": "Azerbaycan", "Code": "AZ", "CurrencyCode": "AZN", - "PhoneCode": "994", + "PhoneCode": 994, "TaxLabel": "" }, { "Name": "Bosna-Hersek", "Code": "BA", "CurrencyCode": "BAM", - "PhoneCode": "387", + "PhoneCode": 387, "TaxLabel": "" }, { "Name": "Barbados", "Code": "BB", "CurrencyCode": "BBD", - "PhoneCode": "1,246", + "PhoneCode": 1246, "TaxLabel": "" }, { "Name": "Bangladeş", "Code": "BD", "CurrencyCode": "BDT", - "PhoneCode": "880", + "PhoneCode": 880, "TaxLabel": "" }, { "Name": "Belçika", "Code": "BE", "CurrencyCode": "EUR", - "PhoneCode": "32", + "PhoneCode": 32, "TaxLabel": "VKN/TCKN" }, { "Name": "Burkina Faso", "Code": "BF", "CurrencyCode": "XOF", - "PhoneCode": "226", + "PhoneCode": 226, "TaxLabel": "" }, { "Name": "Bulgaristan", "Code": "BG", "CurrencyCode": "", - "PhoneCode": "359", + "PhoneCode": 359, "TaxLabel": "VKN/TCKN" }, { "Name": "Bahreyn", "Code": "BH", "CurrencyCode": "", - "PhoneCode": "973", + "PhoneCode": 973, "TaxLabel": "" }, { "Name": "Burundi", "Code": "BI", "CurrencyCode": "", - "PhoneCode": "257", + "PhoneCode": 257, "TaxLabel": "" }, { "Name": "Benin", "Code": "BJ", "CurrencyCode": "XOF", - "PhoneCode": "229", + "PhoneCode": 229, "TaxLabel": "" }, { "Name": "Saint Barthelemy", "Code": "BL", "CurrencyCode": "EUR", - "PhoneCode": "590", + "PhoneCode": 590, "TaxLabel": "" }, { "Name": "Bermuda", "Code": "BM", "CurrencyCode": "", - "PhoneCode": "1,441", + "PhoneCode": 1441, "TaxLabel": "" }, { "Name": "Brunei", "Code": "BN", "CurrencyCode": "", - "PhoneCode": "673", + "PhoneCode": 673, "TaxLabel": "" }, { "Name": "Bolivya", "Code": "BO", "CurrencyCode": "", - "PhoneCode": "591", + "PhoneCode": 591, "TaxLabel": "" }, { "Name": "Bonaire, Sint Eustatius and Saba", "Code": "BQ", "CurrencyCode": "USD", - "PhoneCode": "599", + "PhoneCode": 599, "TaxLabel": "" }, { "Name": "Brezilya", "Code": "BR", "CurrencyCode": "", - "PhoneCode": "55", + "PhoneCode": 55, "TaxLabel": "" }, { "Name": "Bahamalar", "Code": "BS", "CurrencyCode": "", - "PhoneCode": "1,242", + "PhoneCode": 1242, "TaxLabel": "" }, { "Name": "Bhutan", "Code": "BT", "CurrencyCode": "", - "PhoneCode": "975", + "PhoneCode": 975, "TaxLabel": "" }, { "Name": "Bouvet Adası", "Code": "BV", "CurrencyCode": "", - "PhoneCode": "55", + "PhoneCode": 55, "TaxLabel": "" }, { "Name": "Botsvana", "Code": "BW", "CurrencyCode": "BWP", - "PhoneCode": "267", + "PhoneCode": 267, "TaxLabel": "" }, { "Name": "Belarus", "Code": "BY", "CurrencyCode": "BYN", - "PhoneCode": "375", + "PhoneCode": 375, "TaxLabel": "" }, { "Name": "Belize", "Code": "BZ", "CurrencyCode": "BZD", - "PhoneCode": "501", + "PhoneCode": 501, "TaxLabel": "" }, { "Name": "Kanada", "Code": "CA", "CurrencyCode": "CAD", - "PhoneCode": "1", + "PhoneCode": 1, "TaxLabel": "" }, { "Name": "Kokos (Keeling) Adaları", "Code": "CC", "CurrencyCode": "AUD", - "PhoneCode": "61", + "PhoneCode": 61, "TaxLabel": "" }, { "Name": "Orta Afrika Cumhuriyeti", "Code": "CF", "CurrencyCode": "", - "PhoneCode": "236", + "PhoneCode": 236, "TaxLabel": "" }, { "Name": "Kongo Demokratik Cumhuriyeti", "Code": "CD", "CurrencyCode": "", - "PhoneCode": "243", + "PhoneCode": 243, "TaxLabel": "" }, { "Name": "Kongo", "Code": "CG", "CurrencyCode": "", - "PhoneCode": "242", + "PhoneCode": 242, "TaxLabel": "" }, { "Name": "İsviçre", "Code": "CH", "CurrencyCode": "CHF", - "PhoneCode": "41", + "PhoneCode": 41, "TaxLabel": "" }, { "Name": "Fildişi Sahili", "Code": "CI", "CurrencyCode": "XOF", - "PhoneCode": "225", + "PhoneCode": 225, "TaxLabel": "" }, { "Name": "Cook Adaları", "Code": "CK", "CurrencyCode": "", - "PhoneCode": "682", + "PhoneCode": 682, "TaxLabel": "" }, { "Name": "Şili", "Code": "CL", "CurrencyCode": "CLP", - "PhoneCode": "56", + "PhoneCode": 56, "TaxLabel": "" }, { "Name": "Kamerun", "Code": "CM", "CurrencyCode": "", - "PhoneCode": "237", + "PhoneCode": 237, "TaxLabel": "" }, { "Name": "Çin Halk Cumhuriyeti", "Code": "CN", "CurrencyCode": "CNY", - "PhoneCode": "86", + "PhoneCode": 86, "TaxLabel": "" }, { "Name": "Kolombiya", "Code": "CO", "CurrencyCode": "COP", - "PhoneCode": "57", + "PhoneCode": 57, "TaxLabel": "NIT" }, { "Name": "Kosta Rika", "Code": "CR", "CurrencyCode": "CRC", - "PhoneCode": "506", + "PhoneCode": 506, "TaxLabel": "" }, { "Name": "Küba", "Code": "CU", "CurrencyCode": "CUP", - "PhoneCode": "53", + "PhoneCode": 53, "TaxLabel": "" }, { "Name": "Cape Verde", "Code": "CV", "CurrencyCode": "", - "PhoneCode": "238", + "PhoneCode": 238, "TaxLabel": "" }, { "Name": "Curacao", "Code": "CW", "CurrencyCode": "ANG", - "PhoneCode": "599", + "PhoneCode": 599, "TaxLabel": "" }, { "Name": "Christmas Adası", "Code": "CX", "CurrencyCode": "AUD", - "PhoneCode": "61", + "PhoneCode": 61, "TaxLabel": "" }, { "Name": "Kıbrıs Rum Kesimi", "Code": "CY", "CurrencyCode": "EUR", - "PhoneCode": "357", + "PhoneCode": 357, "TaxLabel": "VKN/TCKN" }, { "Name": "Çek Cumhuriyeti", "Code": "CZ", "CurrencyCode": "", - "PhoneCode": "420", + "PhoneCode": 420, "TaxLabel": "VKN/TCKN" }, { "Name": "Almanya", "Code": "DE", "CurrencyCode": "EUR", - "PhoneCode": "49", + "PhoneCode": 49, "TaxLabel": "VKN/TCKN" }, { "Name": "Cibuti", "Code": "DJ", "CurrencyCode": "", - "PhoneCode": "253", + "PhoneCode": 253, "TaxLabel": "" }, { "Name": "Danimarka", "Code": "DK", "CurrencyCode": "", - "PhoneCode": "45", + "PhoneCode": 45, "TaxLabel": "VKN/TCKN" }, { "Name": "Dominika", "Code": "DM", "CurrencyCode": "USD", - "PhoneCode": "1,767", + "PhoneCode": 1767, "TaxLabel": "" }, { "Name": "Dominik Cumhuriyeti", "Code": "DO", "CurrencyCode": "", - "PhoneCode": "1,849", + "PhoneCode": 1849, "TaxLabel": "RNC" }, { "Name": "Cezayir", "Code": "DZ", "CurrencyCode": "DZD", - "PhoneCode": "213", + "PhoneCode": 213, "TaxLabel": "" }, { "Name": "Ekvador", "Code": "EC", "CurrencyCode": "USD", - "PhoneCode": "593", + "PhoneCode": 593, "TaxLabel": "RUC" }, { "Name": "Estonya", "Code": "EE", "CurrencyCode": "EUR", - "PhoneCode": "372", + "PhoneCode": 372, "TaxLabel": "VKN/TCKN" }, { "Name": "Mısır", "Code": "EG", "CurrencyCode": "", - "PhoneCode": "20", + "PhoneCode": 20, "TaxLabel": "" }, { "Name": "Batı Sahra", "Code": "EH", "CurrencyCode": "", - "PhoneCode": "212", + "PhoneCode": 212, "TaxLabel": "" }, { "Name": "Eritre", "Code": "ER", "CurrencyCode": "", - "PhoneCode": "291", + "PhoneCode": 291, "TaxLabel": "" }, { "Name": "İspanya", "Code": "ES", "CurrencyCode": "EUR", - "PhoneCode": "34", + "PhoneCode": 34, "TaxLabel": "VKN/TCKN" }, { "Name": "Etiyopya", "Code": "ET", "CurrencyCode": "", - "PhoneCode": "251", + "PhoneCode": 251, "TaxLabel": "" }, { "Name": "Finlandiya", "Code": "FI", "CurrencyCode": "EUR", - "PhoneCode": "358", + "PhoneCode": 358, "TaxLabel": "VKN/TCKN" }, { "Name": "Fiji", "Code": "FJ", "CurrencyCode": "", - "PhoneCode": "679", + "PhoneCode": 679, "TaxLabel": "" }, { "Name": "Falkland Adaları", "Code": "FK", "CurrencyCode": "", - "PhoneCode": "500", + "PhoneCode": 500, "TaxLabel": "" }, { "Name": "Mikronezya", "Code": "FM", "CurrencyCode": "USD", - "PhoneCode": "691", + "PhoneCode": 691, "TaxLabel": "" }, { "Name": "Faroe Adaları", "Code": "FO", "CurrencyCode": "", - "PhoneCode": "298", + "PhoneCode": 298, "TaxLabel": "" }, { "Name": "Fransa", "Code": "FR", "CurrencyCode": "EUR", - "PhoneCode": "33", + "PhoneCode": 33, "TaxLabel": "VKN/TCKN" }, { "Name": "Gabon", "Code": "GA", "CurrencyCode": "", - "PhoneCode": "241", + "PhoneCode": 241, "TaxLabel": "" }, { "Name": "Grenada", "Code": "GD", "CurrencyCode": "USD", - "PhoneCode": "1,473", + "PhoneCode": 1473, "TaxLabel": "" }, { "Name": "Gürcistan", "Code": "GE", "CurrencyCode": "", - "PhoneCode": "995", + "PhoneCode": 995, "TaxLabel": "" }, { "Name": "Fransız Guyanası", "Code": "GF", "CurrencyCode": "EUR", - "PhoneCode": "594", + "PhoneCode": 594, "TaxLabel": "" }, { "Name": "Gana", "Code": "GH", "CurrencyCode": "", - "PhoneCode": "233", + "PhoneCode": 233, "TaxLabel": "" }, { "Name": "Cebelitarık", "Code": "GI", "CurrencyCode": "", - "PhoneCode": "350", + "PhoneCode": 350, "TaxLabel": "" }, { "Name": "Guernsey", "Code": "GG", "CurrencyCode": "", - "PhoneCode": "44", + "PhoneCode": 44, "TaxLabel": "" }, { "Name": "Grönland", "Code": "GL", "CurrencyCode": "", - "PhoneCode": "299", + "PhoneCode": 299, "TaxLabel": "" }, { "Name": "Gambiya", "Code": "GM", "CurrencyCode": "", - "PhoneCode": "220", + "PhoneCode": 220, "TaxLabel": "" }, { "Name": "Gine", "Code": "GN", "CurrencyCode": "", - "PhoneCode": "224", + "PhoneCode": 224, "TaxLabel": "" }, { "Name": "Guadelup", "Code": "GP", "CurrencyCode": "EUR", - "PhoneCode": "590", + "PhoneCode": 590, "TaxLabel": "" }, { "Name": "Ekvator Ginesi", "Code": "GQ", "CurrencyCode": "", - "PhoneCode": "240", + "PhoneCode": 240, "TaxLabel": "" }, { "Name": "Yunanistan", "Code": "GR", "CurrencyCode": "EUR", - "PhoneCode": "30", + "PhoneCode": 30, "TaxLabel": "VKN/TCKN" }, { "Name": "Güney Georgia ve Güney Sandwich Adaları", "Code": "GS", "CurrencyCode": "", - "PhoneCode": "500", + "PhoneCode": 500, "TaxLabel": "" }, { "Name": "Guatemala", "Code": "GT", "CurrencyCode": "", - "PhoneCode": "502", + "PhoneCode": 502, "TaxLabel": "NIT" }, { "Name": "Guam", "Code": "GU", "CurrencyCode": "USD", - "PhoneCode": "1,671", + "PhoneCode": 1671, "TaxLabel": "" }, { "Name": "Gine-Bissau", "Code": "GW", "CurrencyCode": "XOF", - "PhoneCode": "245", + "PhoneCode": 245, "TaxLabel": "" }, { "Name": "Guyana", "Code": "GY", "CurrencyCode": "", - "PhoneCode": "592", + "PhoneCode": 592, "TaxLabel": "" }, { "Name": "Hong Kong", "Code": "HK", "CurrencyCode": "", - "PhoneCode": "852", + "PhoneCode": 852, "TaxLabel": "" }, { "Name": "Heard Adası ve McDonald Adaları", "Code": "HM", "CurrencyCode": "AUD", - "PhoneCode": "672", + "PhoneCode": 672, "TaxLabel": "" }, { "Name": "Honduras", "Code": "HN", "CurrencyCode": "", - "PhoneCode": "504", + "PhoneCode": 504, "TaxLabel": "RTN" }, { "Name": "Hırvatistan", "Code": "HR", "CurrencyCode": "EUR", - "PhoneCode": "385", + "PhoneCode": 385, "TaxLabel": "VKN/TCKN" }, { "Name": "Haiti", "Code": "HT", "CurrencyCode": "", - "PhoneCode": "509", + "PhoneCode": 509, "TaxLabel": "" }, { "Name": "Macaristan", "Code": "HU", "CurrencyCode": "", - "PhoneCode": "36", + "PhoneCode": 36, "TaxLabel": "VKN/TCKN" }, { "Name": "Endonezya", "Code": "ID", "CurrencyCode": "", - "PhoneCode": "62", + "PhoneCode": 62, "TaxLabel": "NPWP" }, { "Name": "İrlanda", "Code": "IE", "CurrencyCode": "EUR", - "PhoneCode": "353", + "PhoneCode": 353, "TaxLabel": "VKN/TCKN" }, { "Name": "İsrail", "Code": "IL", "CurrencyCode": "ILS", - "PhoneCode": "972", + "PhoneCode": 972, "TaxLabel": "" }, { "Name": "Man Adası", "Code": "IM", "CurrencyCode": "", - "PhoneCode": "44", + "PhoneCode": 44, "TaxLabel": "" }, { "Name": "Hindistan", "Code": "IN", "CurrencyCode": "", - "PhoneCode": "91", + "PhoneCode": 91, "TaxLabel": "GSTIN" }, { "Name": "İngiliz Hint Okyanusu Toprağı", "Code": "IO", "CurrencyCode": "USD", - "PhoneCode": "246", + "PhoneCode": 246, "TaxLabel": "" }, { "Name": "Irak", "Code": "IQ", "CurrencyCode": "", - "PhoneCode": "964", + "PhoneCode": 964, "TaxLabel": "" }, { "Name": "İran", "Code": "IR", "CurrencyCode": "", - "PhoneCode": "98", + "PhoneCode": 98, "TaxLabel": "" }, { "Name": "İzlanda", "Code": "IS", "CurrencyCode": "", - "PhoneCode": "354", + "PhoneCode": 354, "TaxLabel": "" }, { "Name": "İtalya", "Code": "IT", "CurrencyCode": "EUR", - "PhoneCode": "39", + "PhoneCode": 39, "TaxLabel": "VKN/TCKN" }, { "Name": "Jersey", "Code": "JE", "CurrencyCode": "", - "PhoneCode": "44", + "PhoneCode": 44, "TaxLabel": "" }, { "Name": "Jamaika", "Code": "JM", "CurrencyCode": "", - "PhoneCode": "1,876", + "PhoneCode": 1876, "TaxLabel": "" }, { "Name": "Ürdün", "Code": "JO", "CurrencyCode": "", - "PhoneCode": "962", + "PhoneCode": 962, "TaxLabel": "" }, { "Name": "Japonya", "Code": "JP", "CurrencyCode": "", - "PhoneCode": "81", + "PhoneCode": 81, "TaxLabel": "" }, { "Name": "Kenya", "Code": "KE", "CurrencyCode": "", - "PhoneCode": "254", + "PhoneCode": 254, "TaxLabel": "" }, { "Name": "Kırgızistan", "Code": "KG", "CurrencyCode": "", - "PhoneCode": "996", + "PhoneCode": 996, "TaxLabel": "" }, { "Name": "Kamboçya", "Code": "KH", "CurrencyCode": "", - "PhoneCode": "855", + "PhoneCode": 855, "TaxLabel": "" }, { "Name": "Kiribati", "Code": "KI", "CurrencyCode": "AUD", - "PhoneCode": "686", + "PhoneCode": 686, "TaxLabel": "" }, { "Name": "Komorlar", "Code": "KM", "CurrencyCode": "", - "PhoneCode": "269", + "PhoneCode": 269, "TaxLabel": "" }, { "Name": "Saint Kitts ve Nevis", "Code": "KN", "CurrencyCode": "USD", - "PhoneCode": "1,869", + "PhoneCode": 1869, "TaxLabel": "" }, { "Name": "Kuzey Kore", "Code": "KP", "CurrencyCode": "", - "PhoneCode": "850", + "PhoneCode": 850, "TaxLabel": "" }, { "Name": "Güney Kore", "Code": "KR", "CurrencyCode": "", - "PhoneCode": "82", + "PhoneCode": 82, "TaxLabel": "" }, { "Name": "Kuveyt", "Code": "KW", "CurrencyCode": "", - "PhoneCode": "965", + "PhoneCode": 965, "TaxLabel": "" }, { "Name": "Kayman Adaları", "Code": "KY", "CurrencyCode": "", - "PhoneCode": "1,345", + "PhoneCode": 1345, "TaxLabel": "" }, { "Name": "Kazakistan", "Code": "KZ", "CurrencyCode": "", - "PhoneCode": "7", + "PhoneCode": 7, "TaxLabel": "" }, { "Name": "Laos", "Code": "LA", "CurrencyCode": "", - "PhoneCode": "856", + "PhoneCode": 856, "TaxLabel": "" }, { "Name": "Lübnan", "Code": "LB", "CurrencyCode": "", - "PhoneCode": "961", + "PhoneCode": 961, "TaxLabel": "" }, { "Name": "Saint Lucia", "Code": "LC", "CurrencyCode": "USD", - "PhoneCode": "1,758", + "PhoneCode": 1758, "TaxLabel": "" }, { "Name": "Lihtenştayn", "Code": "LI", "CurrencyCode": "CHF", - "PhoneCode": "423", + "PhoneCode": 423, "TaxLabel": "" }, { "Name": "Sri Lanka", "Code": "LK", "CurrencyCode": "", - "PhoneCode": "94", + "PhoneCode": 94, "TaxLabel": "" }, { "Name": "Liberya", "Code": "LR", "CurrencyCode": "", - "PhoneCode": "231", + "PhoneCode": 231, "TaxLabel": "" }, { "Name": "Lesotho", "Code": "LS", "CurrencyCode": "", - "PhoneCode": "266", + "PhoneCode": 266, "TaxLabel": "" }, { "Name": "Litvanya", "Code": "LT", "CurrencyCode": "EUR", - "PhoneCode": "370", + "PhoneCode": 370, "TaxLabel": "VKN/TCKN" }, { "Name": "Lüksemburg", "Code": "LU", "CurrencyCode": "EUR", - "PhoneCode": "352", + "PhoneCode": 352, "TaxLabel": "VKN/TCKN" }, { "Name": "Letonya", "Code": "LV", "CurrencyCode": "EUR", - "PhoneCode": "371", + "PhoneCode": 371, "TaxLabel": "VKN/TCKN" }, { "Name": "Libya", "Code": "LY", "CurrencyCode": "", - "PhoneCode": "218", + "PhoneCode": 218, "TaxLabel": "" }, { "Name": "Fas", "Code": "MA", "CurrencyCode": "", - "PhoneCode": "212", + "PhoneCode": 212, "TaxLabel": "" }, { "Name": "Monako", "Code": "MC", "CurrencyCode": "EUR", - "PhoneCode": "377", + "PhoneCode": 377, "TaxLabel": "" }, { "Name": "Moldova Cumhuriyeti", "Code": "MD", "CurrencyCode": "", - "PhoneCode": "373", + "PhoneCode": 373, "TaxLabel": "" }, { "Name": "Karadağ", "Code": "ME", "CurrencyCode": "EUR", - "PhoneCode": "382", + "PhoneCode": 382, "TaxLabel": "" }, { "Name": "Saint Martin (Fransız kısmı)", "Code": "MF", "CurrencyCode": "EUR", - "PhoneCode": "590", + "PhoneCode": 590, "TaxLabel": "" }, { "Name": "Madagaskar", "Code": "MG", "CurrencyCode": "", - "PhoneCode": "261", + "PhoneCode": 261, "TaxLabel": "" }, { "Name": "Marshall Adaları", "Code": "MH", "CurrencyCode": "USD", - "PhoneCode": "692", + "PhoneCode": 692, "TaxLabel": "" }, { "Name": "Makedonya", "Code": "MK", "CurrencyCode": "", - "PhoneCode": "389", + "PhoneCode": 389, "TaxLabel": "" }, { "Name": "Mali", "Code": "ML", "CurrencyCode": "XOF", - "PhoneCode": "223", + "PhoneCode": 223, "TaxLabel": "" }, { "Name": "Myanmar", "Code": "MM", "CurrencyCode": "", - "PhoneCode": "95", + "PhoneCode": 95, "TaxLabel": "" }, { "Name": "Moğolistan", "Code": "MN", "CurrencyCode": "", - "PhoneCode": "976", + "PhoneCode": 976, "TaxLabel": "" }, { "Name": "Makao", "Code": "MO", "CurrencyCode": "", - "PhoneCode": "853", + "PhoneCode": 853, "TaxLabel": "" }, { "Name": "Kuzey Mariana Adaları", "Code": "MP", "CurrencyCode": "USD", - "PhoneCode": "1,670", + "PhoneCode": 1670, "TaxLabel": "" }, { "Name": "Martinik", "Code": "MQ", "CurrencyCode": "EUR", - "PhoneCode": "596", + "PhoneCode": 596, "TaxLabel": "" }, { "Name": "Moritanya", "Code": "MR", "CurrencyCode": "", - "PhoneCode": "222", + "PhoneCode": 222, "TaxLabel": "" }, { "Name": "Montserrat", "Code": "MS", "CurrencyCode": "USD", - "PhoneCode": "1,664", + "PhoneCode": 1664, "TaxLabel": "" }, { "Name": "Malta", "Code": "MT", "CurrencyCode": "EUR", - "PhoneCode": "356", + "PhoneCode": 356, "TaxLabel": "VKN/TCKN" }, { "Name": "Mauritius", "Code": "MU", "CurrencyCode": "", - "PhoneCode": "230", + "PhoneCode": 230, "TaxLabel": "" }, { "Name": "Maldivler", "Code": "MV", "CurrencyCode": "", - "PhoneCode": "960", + "PhoneCode": 960, "TaxLabel": "" }, { "Name": "Malavi", "Code": "MW", "CurrencyCode": "", - "PhoneCode": "265", + "PhoneCode": 265, "TaxLabel": "" }, { "Name": "Solomon Adaları", "Code": "SB", "CurrencyCode": "", - "PhoneCode": "677", + "PhoneCode": 677, "TaxLabel": "" }, { "Name": "Meksika", "Code": "MX", "CurrencyCode": "", - "PhoneCode": "52", + "PhoneCode": 52, "TaxLabel": "RFC" }, { "Name": "Malezya", "Code": "MY", "CurrencyCode": "", - "PhoneCode": "60", + "PhoneCode": 60, "TaxLabel": "" }, { "Name": "Mozambik", "Code": "MZ", "CurrencyCode": "", - "PhoneCode": "258", + "PhoneCode": 258, "TaxLabel": "" }, { "Name": "Namibya", "Code": "NA", "CurrencyCode": "", - "PhoneCode": "264", + "PhoneCode": 264, "TaxLabel": "" }, { "Name": "Yeni Kaledonya", "Code": "NC", "CurrencyCode": "", - "PhoneCode": "687", + "PhoneCode": 687, "TaxLabel": "" }, { "Name": "Nijer", "Code": "NE", "CurrencyCode": "XOF", - "PhoneCode": "227", + "PhoneCode": 227, "TaxLabel": "" }, { "Name": "Norfolk Adası", "Code": "NF", "CurrencyCode": "AUD", - "PhoneCode": "672", + "PhoneCode": 672, "TaxLabel": "" }, { "Name": "Nijerya", "Code": "NG", "CurrencyCode": "", - "PhoneCode": "234", + "PhoneCode": 234, "TaxLabel": "" }, { "Name": "Nikaragua", "Code": "NI", "CurrencyCode": "", - "PhoneCode": "505", + "PhoneCode": 505, "TaxLabel": "" }, { "Name": "Hollanda", "Code": "NL", "CurrencyCode": "EUR", - "PhoneCode": "31", + "PhoneCode": 31, "TaxLabel": "VKN/TCKN" }, { "Name": "Norveç", "Code": "NO", "CurrencyCode": "", - "PhoneCode": "47", + "PhoneCode": 47, "TaxLabel": "" }, { "Name": "Nepal", "Code": "NP", "CurrencyCode": "", - "PhoneCode": "977", + "PhoneCode": 977, "TaxLabel": "" }, { "Name": "Nauru", "Code": "NR", "CurrencyCode": "AUD", - "PhoneCode": "674", + "PhoneCode": 674, "TaxLabel": "" }, { "Name": "Niue", "Code": "NU", "CurrencyCode": "", - "PhoneCode": "683", + "PhoneCode": 683, "TaxLabel": "" }, { "Name": "Yeni Zelanda", "Code": "NZ", "CurrencyCode": "", - "PhoneCode": "64", + "PhoneCode": 64, "TaxLabel": "" }, { "Name": "Umman", "Code": "OM", "CurrencyCode": "", - "PhoneCode": "968", + "PhoneCode": 968, "TaxLabel": "" }, { "Name": "Panama", "Code": "PA", "CurrencyCode": "", - "PhoneCode": "507", + "PhoneCode": 507, "TaxLabel": "RUC" }, { "Name": "Peru", "Code": "PE", "CurrencyCode": "", - "PhoneCode": "51", + "PhoneCode": 51, "TaxLabel": "RUC" }, { "Name": "Fransız Polinezyası", "Code": "PF", "CurrencyCode": "", - "PhoneCode": "689", + "PhoneCode": 689, "TaxLabel": "N° Tahiti" }, { "Name": "Papua Yeni Gine", "Code": "PG", "CurrencyCode": "", - "PhoneCode": "675", + "PhoneCode": 675, "TaxLabel": "" }, { "Name": "Filipinler", "Code": "PH", "CurrencyCode": "", - "PhoneCode": "63", + "PhoneCode": 63, "TaxLabel": "" }, { "Name": "Pakistan", "Code": "PK", "CurrencyCode": "", - "PhoneCode": "92", + "PhoneCode": 92, "TaxLabel": "" }, { "Name": "Polonya", "Code": "PL", "CurrencyCode": "", - "PhoneCode": "48", + "PhoneCode": 48, "TaxLabel": "VKN/TCKN" }, { "Name": "Saint Pierre ve Mikelon", "Code": "PM", "CurrencyCode": "EUR", - "PhoneCode": "508", + "PhoneCode": 508, "TaxLabel": "" }, { "Name": "Pitcairn", "Code": "PN", "CurrencyCode": "", - "PhoneCode": "64", + "PhoneCode": 64, "TaxLabel": "" }, { "Name": "Porto Riko", "Code": "PR", "CurrencyCode": "USD", - "PhoneCode": "1,939", + "PhoneCode": 1939, "TaxLabel": "" }, { "Name": "İşgal Altındaki Filistin Toprağı", "Code": "PS", "CurrencyCode": "ILS", - "PhoneCode": "970", + "PhoneCode": 970, "TaxLabel": "" }, { "Name": "Portekiz", "Code": "PT", "CurrencyCode": "EUR", - "PhoneCode": "351", + "PhoneCode": 351, "TaxLabel": "VKN/TCKN" }, { "Name": "Palau", "Code": "PW", "CurrencyCode": "USD", - "PhoneCode": "680", + "PhoneCode": 680, "TaxLabel": "" }, { "Name": "Paraguay", "Code": "PY", "CurrencyCode": "", - "PhoneCode": "595", + "PhoneCode": 595, "TaxLabel": "" }, { "Name": "Katar", "Code": "QA", "CurrencyCode": "", - "PhoneCode": "974", + "PhoneCode": 974, "TaxLabel": "" }, { "Name": "Reunion", "Code": "RE", "CurrencyCode": "EUR", - "PhoneCode": "262", + "PhoneCode": 262, "TaxLabel": "" }, { "Name": "Romanya", "Code": "RO", "CurrencyCode": "", - "PhoneCode": "40", + "PhoneCode": 40, "TaxLabel": "VKN/TCKN" }, { "Name": "Sırbistan", "Code": "RS", "CurrencyCode": "", - "PhoneCode": "381", + "PhoneCode": 381, "TaxLabel": "" }, { "Name": "Rusya Federasyonu", "Code": "RU", "CurrencyCode": "", - "PhoneCode": "7", + "PhoneCode": 7, "TaxLabel": "" }, { "Name": "Ruanda", "Code": "RW", "CurrencyCode": "", - "PhoneCode": "250", + "PhoneCode": 250, "TaxLabel": "" }, { "Name": "Suudi Arabistan", "Code": "SA", "CurrencyCode": "", - "PhoneCode": "966", + "PhoneCode": 966, "TaxLabel": "" }, { "Name": "Seyşeller", "Code": "SC", "CurrencyCode": "", - "PhoneCode": "248", + "PhoneCode": 248, "TaxLabel": "" }, { "Name": "Sudan", "Code": "SD", "CurrencyCode": "", - "PhoneCode": "249", + "PhoneCode": 249, "TaxLabel": "" }, { "Name": "İsveç", "Code": "SE", "CurrencyCode": "", - "PhoneCode": "46", + "PhoneCode": 46, "TaxLabel": "VKN/TCKN" }, { "Name": "Singapur", "Code": "SG", "CurrencyCode": "", - "PhoneCode": "65", + "PhoneCode": 65, "TaxLabel": "GST No." }, { "Name": "Saint Helena", "Code": "SH", "CurrencyCode": "", - "PhoneCode": "290", + "PhoneCode": 290, "TaxLabel": "" }, { "Name": "Slovenya", "Code": "SI", "CurrencyCode": "EUR", - "PhoneCode": "386", + "PhoneCode": 386, "TaxLabel": "VKN/TCKN" }, { "Name": "Svalbard ve Jan Mayen", "Code": "SJ", "CurrencyCode": "", - "PhoneCode": "47", + "PhoneCode": 47, "TaxLabel": "" }, { "Name": "Slovakya", "Code": "SK", "CurrencyCode": "EUR", - "PhoneCode": "421", + "PhoneCode": 421, "TaxLabel": "VKN/TCKN" }, { "Name": "Sierra Leone", "Code": "SL", "CurrencyCode": "", - "PhoneCode": "232", + "PhoneCode": 232, "TaxLabel": "" }, { "Name": "San Marino", "Code": "SM", "CurrencyCode": "EUR", - "PhoneCode": "378", + "PhoneCode": 378, "TaxLabel": "" }, { "Name": "Senegal", "Code": "SN", "CurrencyCode": "XOF", - "PhoneCode": "221", + "PhoneCode": 221, "TaxLabel": "" }, { "Name": "Somali", "Code": "SO", "CurrencyCode": "", - "PhoneCode": "252", + "PhoneCode": 252, "TaxLabel": "" }, { "Name": "Surinam", "Code": "SR", "CurrencyCode": "", - "PhoneCode": "597", + "PhoneCode": 597, "TaxLabel": "" }, { "Name": "South Sudan", "Code": "SS", "CurrencyCode": "", - "PhoneCode": "211", + "PhoneCode": 211, "TaxLabel": "" }, { "Name": "Sao Tome ve Principe", "Code": "ST", "CurrencyCode": "", - "PhoneCode": "239", + "PhoneCode": 239, "TaxLabel": "" }, { "Name": "El Salvador", "Code": "SV", "CurrencyCode": "", - "PhoneCode": "503", + "PhoneCode": 503, "TaxLabel": "" }, { "Name": "Sint Maarten", "Code": "SX", "CurrencyCode": "ANG", - "PhoneCode": "1,721", + "PhoneCode": 1721, "TaxLabel": "" }, { "Name": "Suriye", "Code": "SY", "CurrencyCode": "", - "PhoneCode": "963", + "PhoneCode": 963, "TaxLabel": "" }, { "Name": "Svaziland", "Code": "SZ", "CurrencyCode": "", - "PhoneCode": "268", + "PhoneCode": 268, "TaxLabel": "" }, { "Name": "Turks ve Caicos Adaları", "Code": "TC", "CurrencyCode": "USD", - "PhoneCode": "1,649", + "PhoneCode": 1649, "TaxLabel": "" }, { "Name": "Çad", "Code": "TD", "CurrencyCode": "", - "PhoneCode": "235", + "PhoneCode": 235, "TaxLabel": "" }, { "Name": "Fransız Güney Toprakları", "Code": "TF", "CurrencyCode": "EUR", - "PhoneCode": "262", + "PhoneCode": 262, "TaxLabel": "" }, { "Name": "Togo", "Code": "TG", "CurrencyCode": "XOF", - "PhoneCode": "228", + "PhoneCode": 228, "TaxLabel": "" }, { "Name": "Tayland", "Code": "TH", "CurrencyCode": "", - "PhoneCode": "66", + "PhoneCode": 66, "TaxLabel": "" }, { "Name": "Tacikistan", "Code": "TJ", "CurrencyCode": "", - "PhoneCode": "992", + "PhoneCode": 992, "TaxLabel": "" }, { "Name": "Tokelau", "Code": "TK", "CurrencyCode": "", - "PhoneCode": "690", + "PhoneCode": 690, "TaxLabel": "" }, { "Name": "Türkmenistan", "Code": "TM", "CurrencyCode": "", - "PhoneCode": "993", + "PhoneCode": 993, "TaxLabel": "" }, { "Name": "Tunus", "Code": "TN", "CurrencyCode": "", - "PhoneCode": "216", + "PhoneCode": 216, "TaxLabel": "" }, { "Name": "Tonga", "Code": "TO", "CurrencyCode": "", - "PhoneCode": "676", + "PhoneCode": 676, "TaxLabel": "" }, { "Name": "Doğu Timor", "Code": "TL", "CurrencyCode": "USD", - "PhoneCode": "670", + "PhoneCode": 670, "TaxLabel": "" }, { "Name": "Türkiye", "Code": "TR", "CurrencyCode": "TRY", - "PhoneCode": "90", + "PhoneCode": 90, "TaxLabel": "" }, { "Name": "Trinidad ve Tobago", "Code": "TT", "CurrencyCode": "", - "PhoneCode": "1,868", + "PhoneCode": 1868, "TaxLabel": "" }, { "Name": "Tuvalu", "Code": "TV", "CurrencyCode": "AUD", - "PhoneCode": "688", + "PhoneCode": 688, "TaxLabel": "" }, { "Name": "Tayvan", "Code": "TW", "CurrencyCode": "", - "PhoneCode": "886", + "PhoneCode": 886, "TaxLabel": "" }, { "Name": "Tanzanya Birleşik Cumhuriyeti", "Code": "TZ", "CurrencyCode": "", - "PhoneCode": "255", + "PhoneCode": 255, "TaxLabel": "" }, { "Name": "Ukrayna", "Code": "UA", "CurrencyCode": "", - "PhoneCode": "380", + "PhoneCode": 380, "TaxLabel": "" }, { "Name": "Uganda", "Code": "UG", "CurrencyCode": "", - "PhoneCode": "256", + "PhoneCode": 256, "TaxLabel": "" }, { "Name": "Birleşik Krallık (Büyük Britanya ve Kuzey İrlanda)", "Code": "GB", "CurrencyCode": "", - "PhoneCode": "44", + "PhoneCode": 44, "TaxLabel": "VKN/TCKN" }, { "Name": "Birleşik Devletler Minor Outlying Adaları", "Code": "UM", "CurrencyCode": "USD", - "PhoneCode": "699", + "PhoneCode": 699, "TaxLabel": "" }, { "Name": "Amerika Birleşik Devletleri", "Code": "US", "CurrencyCode": "USD", - "PhoneCode": "1", + "PhoneCode": 1, "TaxLabel": "" }, { "Name": "Uruguay", "Code": "UY", "CurrencyCode": "", - "PhoneCode": "598", + "PhoneCode": 598, "TaxLabel": "" }, { "Name": "Özbekistan", "Code": "UZ", "CurrencyCode": "", - "PhoneCode": "998", + "PhoneCode": 998, "TaxLabel": "" }, { "Name": "Vatikan", "Code": "VA", "CurrencyCode": "EUR", - "PhoneCode": "379", + "PhoneCode": 379, "TaxLabel": "" }, { "Name": "Saint Vincent ve Grenadinler", "Code": "VC", "CurrencyCode": "USD", - "PhoneCode": "1,784", + "PhoneCode": 1784, "TaxLabel": "" }, { "Name": "Venezuela", "Code": "VE", "CurrencyCode": "", - "PhoneCode": "58", + "PhoneCode": 58, "TaxLabel": "" }, { "Name": "Virjin Adaları (İngiliz)", "Code": "VG", "CurrencyCode": "USD", - "PhoneCode": "1,284", + "PhoneCode": 1284, "TaxLabel": "" }, { "Name": "Virjin Adaları (ABD)", "Code": "VI", "CurrencyCode": "USD", - "PhoneCode": "1,340", + "PhoneCode": 1340, "TaxLabel": "" }, { "Name": "Vietnam", "Code": "VN", "CurrencyCode": "", - "PhoneCode": "84", + "PhoneCode": 84, "TaxLabel": "" }, { "Name": "Vanuatu", "Code": "VU", "CurrencyCode": "", - "PhoneCode": "678", + "PhoneCode": 678, "TaxLabel": "" }, { "Name": "Wallis ve Futuna", "Code": "WF", "CurrencyCode": "", - "PhoneCode": "681", + "PhoneCode": 681, "TaxLabel": "" }, { "Name": "Samoa", "Code": "WS", "CurrencyCode": "", - "PhoneCode": "685", + "PhoneCode": 685, "TaxLabel": "" }, { "Name": "Yemen", "Code": "YE", "CurrencyCode": "", - "PhoneCode": "967", + "PhoneCode": 967, "TaxLabel": "" }, { "Name": "Mayotte", "Code": "YT", "CurrencyCode": "EUR", - "PhoneCode": "262", + "PhoneCode": 262, "TaxLabel": "" }, { "Name": "Güney Afrika Cumhuriyeti", "Code": "ZA", "CurrencyCode": "", - "PhoneCode": "27", + "PhoneCode": 27, "TaxLabel": "" }, { "Name": "Zambia", "Code": "ZM", "CurrencyCode": "", - "PhoneCode": "260", + "PhoneCode": 260, "TaxLabel": "" }, { "Name": "Zimbabve", "Code": "ZW", "CurrencyCode": "", - "PhoneCode": "263", + "PhoneCode": 263, "TaxLabel": "" }, { "Name": "Kosova", "Code": "XK", "CurrencyCode": "EUR", - "PhoneCode": "383", + "PhoneCode": 383, "TaxLabel": "" } ], - "States": [ + "Cities": [ { "Name": "Cairo", "Code": "C", diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/SeederDto.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/SeederDto.cs index 9f8e47b3..c090f03e 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/SeederDto.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/SeederDto.cs @@ -27,7 +27,7 @@ public class SeederDto public List Currencies { get; set; } public List CountryGroups { get; set; } public List Countries { get; set; } - public List States { get; set; } + public List Cities { get; set; } public List SkillTypes { get; set; } public List Skills { get; set; } public List SkillLevels { get; set; } @@ -159,12 +159,12 @@ public class CountrySeedDto public string Name { get; set; } public string Code { get; set; } public string CurrencyCode { get; set; } - public string PhoneCode { get; set; } + public int PhoneCode { get; set; } public string TaxLabel { get; set; } public string GroupName { get; set; } } -public class StateSeedDto +public class CitySeedDto { public string Name { get; set; } public string Code { get; set; } diff --git a/api/src/Kurs.Platform.Domain.Shared/PlatformConsts.cs b/api/src/Kurs.Platform.Domain.Shared/PlatformConsts.cs index 711bbc71..aee27d05 100644 --- a/api/src/Kurs.Platform.Domain.Shared/PlatformConsts.cs +++ b/api/src/Kurs.Platform.Domain.Shared/PlatformConsts.cs @@ -32,8 +32,9 @@ public static class PlatformConsts public const string TaxOffice = "TaxOffice"; public const string Address = "Address"; public const string Address2 = "Address2"; - public const string District = "District"; + public const string Country = "Country"; public const string City = "City"; + public const string District = "District"; public const string PostalCode = "PostalCode"; public const string Phone = "Phone"; public const string Mobile = "Mobile"; @@ -354,7 +355,7 @@ public static class PlatformConsts public const string Currency = "list-currency"; public const string CountryGroup = "list-countryGroup"; public const string Country = "list-country"; - public const string State = "list-state"; + public const string State = "list-city"; public const string SkillType = "list-skillType"; public const string UomCategory = "list-uomCategory"; public const string ListformField = "list-listformfield"; diff --git a/api/src/Kurs.Platform.Domain/Entities/Branch.cs b/api/src/Kurs.Platform.Domain/Entities/Branch.cs index 6ebe87c2..248f1a6b 100644 --- a/api/src/Kurs.Platform.Domain/Entities/Branch.cs +++ b/api/src/Kurs.Platform.Domain/Entities/Branch.cs @@ -1,6 +1,5 @@ using System; using Volo.Abp.Domain.Entities.Auditing; -using System.Collections.Generic; namespace Kurs.Platform.Entities; @@ -14,6 +13,7 @@ public class Branch : FullAuditedEntity public string Address { get; set; } public string Address2 { get; set; } public string District { get; set; } + public string Country { get; set; } public string City { get; set; } public string PostalCode { get; set; } public long? Phone { get; set; } diff --git a/api/src/Kurs.Platform.Domain/Entities/State.cs b/api/src/Kurs.Platform.Domain/Entities/City.cs similarity index 89% rename from api/src/Kurs.Platform.Domain/Entities/State.cs rename to api/src/Kurs.Platform.Domain/Entities/City.cs index 8d8bfd3c..bfb7aa0f 100644 --- a/api/src/Kurs.Platform.Domain/Entities/State.cs +++ b/api/src/Kurs.Platform.Domain/Entities/City.cs @@ -4,7 +4,7 @@ using Volo.Abp.Domain.Entities.Auditing; namespace Kurs.Platform.Entities; -public class State : FullAuditedEntity +public class City : FullAuditedEntity { [Required] [MaxLength(128)] diff --git a/api/src/Kurs.Platform.Domain/Entities/Country.cs b/api/src/Kurs.Platform.Domain/Entities/Country.cs index e082ef4e..b4dfbfc1 100644 --- a/api/src/Kurs.Platform.Domain/Entities/Country.cs +++ b/api/src/Kurs.Platform.Domain/Entities/Country.cs @@ -21,8 +21,7 @@ public class Country : FullAuditedEntity [MaxLength(8)] public string CurrencyCode { get; set; } - [MaxLength(16)] - public string PhoneCode { get; set; } + public int PhoneCode { get; set; } [MaxLength(64)] public string TaxLabel { get; set; } @@ -31,7 +30,7 @@ public class Country : FullAuditedEntity public bool StateRequired { get; set; } - public ICollection States { get; set; } + public ICollection Cities { get; set; } } public class CountryGroup : FullAuditedEntity diff --git a/api/src/Kurs.Platform.Domain/Extensions/AbpTenantExtensions.cs b/api/src/Kurs.Platform.Domain/Extensions/AbpTenantExtensions.cs index fde77d4c..3a06641d 100644 --- a/api/src/Kurs.Platform.Domain/Extensions/AbpTenantExtensions.cs +++ b/api/src/Kurs.Platform.Domain/Extensions/AbpTenantExtensions.cs @@ -74,11 +74,20 @@ public static class AbpTenantExtensions { tenant.SetProperty(PlatformConsts.Tenants.City, city); } - public static string GetCityState(this Tenant tenant) + public static string GetCity(this Tenant tenant) { return tenant.GetProperty(PlatformConsts.Tenants.City); } + public static void SetCountry(this Tenant tenant, string country) + { + tenant.SetProperty(PlatformConsts.Tenants.Country, country); + } + public static string GetCountry(this Tenant tenant) + { + return tenant.GetProperty(PlatformConsts.Tenants.Country); + } + public static void SetPostalCode(this Tenant tenant, string postalCode) { tenant.SetProperty(PlatformConsts.Tenants.PostalCode, postalCode); diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs b/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs index 6b65e5e6..caa7f93d 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs @@ -51,7 +51,7 @@ public class PlatformDbContext : public DbSet BankAccounts { get; set; } public DbSet CountryGroups { get; set; } public DbSet Countries { get; set; } - public DbSet States { get; set; } + public DbSet Cities { get; set; } public DbSet SkillTypes { get; set; } public DbSet Skills { get; set; } public DbSet SkillLevels { get; set; } @@ -332,7 +332,7 @@ public class PlatformDbContext : b.HasIndex(x => x.Code).IsUnique(); b.HasIndex(x => x.GroupName); - b.HasMany(x => x.States) + b.HasMany(x => x.Cities) .WithOne(x => x.Country) .HasForeignKey(x => x.CountryCode) .HasPrincipalKey(x => x.Code) @@ -345,9 +345,9 @@ public class PlatformDbContext : .OnDelete(DeleteBehavior.Restrict); }); - builder.Entity(b => + builder.Entity(b => { - b.ToTable(PlatformConsts.DbTablePrefix + nameof(State), PlatformConsts.DbSchema); + b.ToTable(PlatformConsts.DbTablePrefix + nameof(City), PlatformConsts.DbSchema); b.ConfigureByConvention(); b.Property(x => x.Name).IsRequired().HasMaxLength(128); diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformEfCoreEntityExtensionMappings.cs b/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformEfCoreEntityExtensionMappings.cs index dfe80378..4858fc1a 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformEfCoreEntityExtensionMappings.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformEfCoreEntityExtensionMappings.cs @@ -102,7 +102,7 @@ public static class PlatformEfCoreEntityExtensionMappings ObjectExtensionManager.Instance .MapEfCoreProperty( - PlatformConsts.Tenants.District, + PlatformConsts.Tenants.Country, (entityBuilder, propertyBuilder) => { propertyBuilder.HasMaxLength(128).HasDefaultValue(null); @@ -118,6 +118,15 @@ public static class PlatformEfCoreEntityExtensionMappings } ); + ObjectExtensionManager.Instance + .MapEfCoreProperty( + PlatformConsts.Tenants.District, + (entityBuilder, propertyBuilder) => + { + propertyBuilder.HasMaxLength(128).HasDefaultValue(null); + } + ); + ObjectExtensionManager.Instance .MapEfCoreProperty( PlatformConsts.Tenants.PostalCode, diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250616063457_BranchEntity.Designer.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250616063457_BranchEntity.Designer.cs deleted file mode 100644 index 78f53db3..00000000 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250616063457_BranchEntity.Designer.cs +++ /dev/null @@ -1,3718 +0,0 @@ -// -using System; -using Kurs.Platform.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; - -#nullable disable - -namespace Kurs.Platform.Migrations -{ - [DbContext(typeof(PlatformDbContext))] - [Migration("20250616063457_BranchEntity")] - partial class BranchEntity - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "9.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("Kurs.Languages.Entities.Language", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CultureName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsEnabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MultipleCultures") - .HasColumnType("nvarchar(max)"); - - b.Property("TwoLetterISOLanguageName") - .HasColumnType("nvarchar(max)"); - - b.Property("UiCultureName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.HasKey("Id"); - - b.ToTable("PLanguage", (string)null); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", b => - { - b.Property("ResourceName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Key") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("ResourceName", "Key"); - - b.ToTable("PLanguageKey", (string)null); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CultureName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("Key") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ResourceName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("ResourceName", "Key"); - - b.ToTable("PLanguageText", (string)null); - }); - - modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Attachment") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("AttachmentParameter") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("AwsMessageId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("From") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MailParameter") - .HasMaxLength(8000) - .HasColumnType("nvarchar(max)"); - - b.Property("RelatedRecordId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SendStatus") - .HasColumnType("bit"); - - b.Property("SendTime") - .HasColumnType("datetime2"); - - b.Property("Table") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TableParameter") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("TemplateId") - .HasColumnType("uniqueidentifier"); - - b.Property("To") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.ToTable("PBackgroundWorker_MailQueue", (string)null); - }); - - modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueEvents", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AwsMessageId") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Event") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("EventDate") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MailAddress") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ResponseDescription") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PBackgroundWorker_MailQueueEvents", (string)null); - }); - - modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueTableFormat", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("Caption") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ColumnName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Css") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DataFormat") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DataType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FooterCss") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("HeaderCss") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("IsHidden") - .HasColumnType("bit"); - - b.Property("IsProtected") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("smallint"); - - b.Property("SubTotal") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Width") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex(new[] { "TableName", "Order" }, "IX_MailQueueTableFormat") - .IsUnique(); - - b.ToTable("PBackgroundWorker_MailQueueTableFormat", (string)null); - }); - - modelBuilder.Entity("Kurs.Notifications.Entities.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Identifier") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsRead") - .HasColumnType("bit"); - - b.Property("IsSent") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Message") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NotificationChannel") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("NotificationRuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("NotificationType") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("PNotification", (string)null); - }); - - modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Channel") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsCustomized") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NotificationType") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("RecipientId") - .HasColumnType("nvarchar(max)"); - - b.Property("RecipientType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PNotificationRule", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.AiBot", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BotName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PAiBot", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BackgroundWorker", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AfterSp") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("BeforeSp") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DataSourceCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Options") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkerType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("PBackgroundWorker", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Branch", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasColumnType("nvarchar(max)"); - - b.Property("Address2") - .HasColumnType("nvarchar(max)"); - - b.Property("City") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("District") - .HasColumnType("nvarchar(max)"); - - b.Property("Email") - .HasColumnType("nvarchar(max)"); - - b.Property("Fax") - .HasColumnType("bigint"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Mobile") - .HasColumnType("bigint"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Phone") - .HasColumnType("bigint"); - - b.Property("PostalCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxOffice") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("VknTckn") - .HasColumnType("bigint"); - - b.Property("Website") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PBranch", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BranchUsers", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "BranchId"); - - b.ToTable("PBranchUsers", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Chart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdaptiveLayoutJson") - .HasColumnType("nvarchar(max)"); - - b.Property("AnimationJson") - .HasColumnType("nvarchar(max)"); - - b.Property("AnnotationsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ArgumentAxisJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ChartCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CommonAnnotationsSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommonAxisSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommonJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommonPaneSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommonSeriesSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CrosshairJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CultureName") - .IsRequired() - .ValueGeneratedOnAdd() - .HasColumnType("nvarchar(max)") - .HasDefaultValue("en"); - - b.Property("DataSourceCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DataSourceJson") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExportJson") - .HasColumnType("nvarchar(max)"); - - b.Property("IsBranch") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsOrganizationUnit") - .HasColumnType("bit"); - - b.Property("IsTenant") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LegendJson") - .HasColumnType("nvarchar(max)"); - - b.Property("MarginJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PanesJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PermissionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("RoleId") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrollBarJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SeriesJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SizeJson") - .HasColumnType("nvarchar(max)"); - - b.Property("TitleJson") - .HasColumnType("nvarchar(max)"); - - b.Property("TooltipJson") - .HasColumnType("nvarchar(max)"); - - b.Property("UserId") - .HasColumnType("nvarchar(max)"); - - b.Property("ValueAxisJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ZoomAndPanJson") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PChart", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.DataSource", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ConnectionString") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataSourceType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.ToTable("PDataSource", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.GlobalSearch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("Group") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("System") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Term") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .HasColumnType("nvarchar(max)"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PGlobalSearch", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.IpRestriction", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ResourceId") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("ResourceType") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("PIpRestriction", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ColumnOptionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommandColumnJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CultureName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomJsSourcesJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomStyleSourcesJson") - .HasColumnType("nvarchar(max)"); - - b.Property("DataSourceCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DefaultFilter") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleteCommand") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleteFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleteServiceAddress") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("EditingFormJson") - .HasColumnType("nvarchar(max)"); - - b.Property("EditingOptionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("FilterPanelJson") - .HasColumnType("nvarchar(max)"); - - b.Property("FilterRowJson") - .HasColumnType("nvarchar(max)"); - - b.Property("FormFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupPanelJson") - .HasColumnType("nvarchar(max)"); - - b.Property("HeaderFilterJson") - .HasColumnType("nvarchar(max)"); - - b.Property("Height") - .HasColumnType("int"); - - b.Property("InsertCommand") - .HasColumnType("nvarchar(max)"); - - b.Property("InsertFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("InsertServiceAddress") - .HasColumnType("nvarchar(max)"); - - b.Property("IsBranch") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsOrganizationUnit") - .HasColumnType("bit"); - - b.Property("IsSubForm") - .HasColumnType("bit"); - - b.Property("IsTenant") - .HasColumnType("bit"); - - b.Property("KeyFieldDbSourceType") - .HasColumnType("int"); - - b.Property("KeyFieldName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ListFormCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("ListFormType") - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("PageSize") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(10); - - b.Property("PagerOptionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PermissionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SearchPanelJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SelectCommand") - .HasColumnType("nvarchar(max)"); - - b.Property("SelectCommandType") - .HasColumnType("int"); - - b.Property("SelectFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SelectionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SortMode") - .HasColumnType("nvarchar(max)"); - - b.Property("StateStoringJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SubFormsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("Title") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateCommand") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateServiceAddress") - .HasColumnType("nvarchar(max)"); - - b.Property("Width") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("PListForm", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormCustomization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomizationData") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomizationType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("FilterName") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ListFormCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("RoleId") - .HasColumnType("nvarchar(max)"); - - b.Property("UserId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ListFormCode"); - - b.ToTable("PListFormCustomization", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormField", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Alignment") - .HasColumnType("nvarchar(max)"); - - b.Property("AllowSearch") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("BandName") - .HasColumnType("nvarchar(max)"); - - b.Property("CaptionName") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnCssClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnCssValue") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnCustomizationJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnFilterJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnHeaderJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnStylingJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CultureName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EditingJson") - .HasColumnType("nvarchar(max)"); - - b.Property("EditorOptions") - .HasColumnType("nvarchar(max)"); - - b.Property("FieldName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Format") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupSummaryJson") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupingJson") - .HasColumnType("nvarchar(max)"); - - b.Property("IsActive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("JoinTableJson") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ListFormCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("ListOrderNo") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(30); - - b.Property("LookupJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PermissionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PivotSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("RoleId") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDirection") - .HasColumnType("nvarchar(max)"); - - b.Property("SortIndex") - .HasColumnType("int"); - - b.Property("SourceDbType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(16); - - b.Property("TotalSummaryJson") - .HasColumnType("nvarchar(max)"); - - b.Property("UserId") - .HasColumnType("nvarchar(max)"); - - b.Property("ValidationRuleJson") - .HasColumnType("nvarchar(max)"); - - b.Property("Visible") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("Width") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(100); - - b.HasKey("Id"); - - b.HasIndex("ListFormCode"); - - b.ToTable("PListFormField", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CssClass") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CultureName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ElementId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Icon") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("ParentCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RequiredPermissionName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RoleId") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Target") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Url") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("UserId") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.ToTable("PMenu", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.PublicApi", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataSourceCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Method") - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("ParametersJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PermissionsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("Sql") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Url") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PPublicApi", (string)null); - }); - - modelBuilder.Entity("Kurs.Settings.Entities.SettingDefinition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("DefaultValue") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DescriptionKey") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsEncrypted") - .HasColumnType("bit"); - - b.Property("IsInherited") - .HasColumnType("bit"); - - b.Property("IsVisibleToClients") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MainGroupKey") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("NameKey") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("Providers") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequiredPermissionName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("SelectOptions") - .HasColumnType("nvarchar(max)"); - - b.Property("SubGroupKey") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.ToTable("PSettingDefinition", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)") - .HasColumnName("ApplicationName"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("BrowserInfo"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientId"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientIpAddress"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("ClientName"); - - b.Property("Comments") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Comments"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("CorrelationId"); - - b.Property("Exceptions") - .HasColumnType("nvarchar(max)"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HttpMethod") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("HttpMethod"); - - b.Property("HttpStatusCode") - .HasColumnType("int") - .HasColumnName("HttpStatusCode"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorTenantId"); - - b.Property("ImpersonatorTenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ImpersonatorTenantName"); - - b.Property("ImpersonatorUserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorUserId"); - - b.Property("ImpersonatorUserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ImpersonatorUserName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("TenantName"); - - b.Property("Url") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Url"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("UserId"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId", "ExecutionTime"); - - b.ToTable("AbpAuditLogs", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2") - .HasColumnName("ExecutionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("MethodName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("MethodName"); - - b.Property("Parameters") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasColumnName("Parameters"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ServiceName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - - b.ToTable("AbpAuditLogActions", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ChangeTime") - .HasColumnType("datetime2") - .HasColumnName("ChangeTime"); - - b.Property("ChangeType") - .HasColumnType("tinyint") - .HasColumnName("ChangeType"); - - b.Property("EntityId") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityId"); - - b.Property("EntityTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityTypeFullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityTypeFullName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("EntityChangeId") - .HasColumnType("uniqueidentifier"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("NewValue"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("OriginalValue"); - - b.Property("PropertyName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("PropertyName"); - - b.Property("PropertyTypeFullName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PropertyTypeFullName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAbandoned") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastTryTime") - .HasColumnType("datetime2"); - - b.Property("NextTryTime") - .HasColumnType("datetime2"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint") - .HasDefaultValue((byte)15); - - b.Property("TryCount") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((short)0); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AllowedProviders") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("DefaultValue") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("IsAvailableToHost") - .HasColumnType("bit"); - - b.Property("IsVisibleToClients") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ParentName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ValueType") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("GroupName"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpFeatures", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureGroupDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpFeatureGroups", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey") - .IsUnique() - .HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); - - b.ToTable("AbpFeatureValues", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStatic") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Regex") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("RegexDescription") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AbpClaimTypes", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique() - .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - b.ToTable("AbpLinkUsers", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("EntityVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDefault") - .HasColumnType("bit") - .HasColumnName("IsDefault"); - - b.Property("IsPublic") - .HasColumnType("bit") - .HasColumnName("IsPublic"); - - b.Property("IsStatic") - .HasColumnType("bit") - .HasColumnName("IsStatic"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpRoles", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpRoleClaims", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Action") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Identity") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Action"); - - b.HasIndex("TenantId", "ApplicationName"); - - b.HasIndex("TenantId", "Identity"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSecurityLogs", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySession", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Device") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeviceInfo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IpAddresses") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("LastAccessed") - .HasColumnType("datetime2"); - - b.Property("SessionId") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("SignedIn") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("Device"); - - b.HasIndex("SessionId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSessions", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccessFailedCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0) - .HasColumnName("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Email"); - - b.Property("EmailConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("EmailConfirmed"); - - b.Property("EntityVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsActive") - .HasColumnType("bit") - .HasColumnName("IsActive"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsExternal") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsExternal"); - - b.Property("IsVerified") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LastPasswordChangeTime") - .HasColumnType("datetimeoffset"); - - b.Property("LockoutEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("LockoutEnabled"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("LoginEndDate") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Name"); - - b.Property("NormalizedEmail") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedEmail"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedUserName"); - - b.Property("PasswordHash") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("PasswordHash"); - - b.Property("PhoneNumber") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("PhoneNumber"); - - b.Property("PhoneNumberConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("PhoneNumberConfirmed"); - - b.Property("RocketUsername") - .HasColumnType("nvarchar(max)"); - - b.Property("SecurityStamp") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("SecurityStamp"); - - b.Property("ShouldChangePasswordOnNextLogin") - .HasColumnType("bit"); - - b.Property("Surname") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Surname"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TwoFactorEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("TwoFactorEnabled"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("Email"); - - b.HasIndex("NormalizedEmail"); - - b.HasIndex("NormalizedUserName"); - - b.HasIndex("UserName"); - - b.ToTable("AbpUsers", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AbpUserClaims", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserDelegation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("AbpUserDelegations", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderDisplayName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(196) - .HasColumnType("nvarchar(196)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "LoginProvider"); - - b.HasIndex("LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "UserId"); - - b.HasIndex("UserId", "OrganizationUnitId"); - - b.ToTable("AbpUserOrganizationUnits", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId", "UserId"); - - b.ToTable("AbpUserRoles", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AbpUserTokens", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(95)") - .HasColumnName("Code"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("DisplayName"); - - b.Property("EntityVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code"); - - b.HasIndex("ParentId"); - - b.ToTable("AbpOrganizationUnits", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "RoleId"); - - b.HasIndex("RoleId", "OrganizationUnitId"); - - b.ToTable("AbpOrganizationUnitRoles", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ClientId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ClientSecret") - .HasColumnType("nvarchar(max)"); - - b.Property("ClientType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ClientUri") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsentType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayNames") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("JsonWebKeySet") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LogoUri") - .HasColumnType("nvarchar(max)"); - - b.Property("Permissions") - .HasColumnType("nvarchar(max)"); - - b.Property("PostLogoutRedirectUris") - .HasColumnType("nvarchar(max)"); - - b.Property("Properties") - .HasColumnType("nvarchar(max)"); - - b.Property("RedirectUris") - .HasColumnType("nvarchar(max)"); - - b.Property("Requirements") - .HasColumnType("nvarchar(max)"); - - b.Property("Settings") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.ToTable("OpenIddictApplications", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Properties") - .HasColumnType("nvarchar(max)"); - - b.Property("Scopes") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Subject") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationId", "Status", "Subject", "Type"); - - b.ToTable("OpenIddictAuthorizations", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Scopes.OpenIddictScope", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Descriptions") - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayNames") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Properties") - .HasColumnType("nvarchar(max)"); - - b.Property("Resources") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("OpenIddictScopes", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Tokens.OpenIddictToken", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationId") - .HasColumnType("uniqueidentifier"); - - b.Property("AuthorizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationDate") - .HasColumnType("datetime2"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Payload") - .HasColumnType("nvarchar(max)"); - - b.Property("Properties") - .HasColumnType("nvarchar(max)"); - - b.Property("RedemptionDate") - .HasColumnType("datetime2"); - - b.Property("ReferenceId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Status") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Subject") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("AuthorizationId"); - - b.HasIndex("ReferenceId"); - - b.HasIndex("ApplicationId", "Status", "Subject", "Type"); - - b.ToTable("OpenIddictTokens", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("IsEnabled") - .HasColumnType("bit"); - - b.Property("MultiTenancySide") - .HasColumnType("tinyint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ParentName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Providers") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("StateCheckers") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("GroupName"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpPermissions", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey") - .IsUnique() - .HasFilter("[TenantId] IS NOT NULL"); - - b.ToTable("AbpPermissionGrants", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGroupDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpPermissionGroups", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey") - .IsUnique() - .HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); - - b.ToTable("AbpSettings", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.SettingDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("DefaultValue") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Description") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsEncrypted") - .HasColumnType("bit"); - - b.Property("IsInherited") - .HasColumnType("bit"); - - b.Property("IsVisibleToClients") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Providers") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpSettingDefinitions", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Address2") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("City") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("District") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Email") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EntityVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasColumnType("bigint"); - - b.Property("InstitutionName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsActive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Mobile") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Phone") - .HasColumnType("bigint"); - - b.Property("PostalCode") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TaxOffice") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("VknTckn") - .HasColumnType("bigint"); - - b.Property("Website") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpTenants", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("TenantId", "Name"); - - b.ToTable("AbpTenantConnectionStrings", (string)null); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b => - { - b.HasOne("Kurs.Languages.Entities.LanguageKey", null) - .WithMany("Texts") - .HasForeignKey("ResourceName", "Key") - .OnDelete(DeleteBehavior.SetNull); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormCustomization", b => - { - b.HasOne("Kurs.Platform.Entities.ListForm", null) - .WithMany() - .HasForeignKey("ListFormCode") - .HasPrincipalKey("ListFormCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormField", b => - { - b.HasOne("Kurs.Platform.Entities.ListForm", null) - .WithMany() - .HasForeignKey("ListFormCode") - .HasPrincipalKey("ListFormCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("Actions") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("EntityChanges") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("OrganizationUnits") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany("Roles") - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", b => - { - b.HasOne("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", null) - .WithMany() - .HasForeignKey("ApplicationId"); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Tokens.OpenIddictToken", b => - { - b.HasOne("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", null) - .WithMany() - .HasForeignKey("ApplicationId"); - - b.HasOne("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", null) - .WithMany() - .HasForeignKey("AuthorizationId"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.HasOne("Volo.Abp.TenantManagement.Tenant", null) - .WithMany("ConnectionStrings") - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", b => - { - b.Navigation("Texts"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Navigation("Actions"); - - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Navigation("Claims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("OrganizationUnits"); - - b.Navigation("Roles"); - - b.Navigation("Tokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Navigation("Roles"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Navigation("ConnectionStrings"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250616063457_BranchEntity.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250616063457_BranchEntity.cs deleted file mode 100644 index b9fe2c72..00000000 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250616063457_BranchEntity.cs +++ /dev/null @@ -1,238 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Kurs.Platform.Migrations -{ - /// - public partial class BranchEntity : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "IsBranch", - table: "PListForm", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "IsBranch", - table: "PChart", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "Address", - table: "AbpTenants", - type: "nvarchar(256)", - maxLength: 256, - nullable: true); - - migrationBuilder.AddColumn( - name: "Address2", - table: "AbpTenants", - type: "nvarchar(256)", - maxLength: 256, - nullable: true); - - migrationBuilder.AddColumn( - name: "City", - table: "AbpTenants", - type: "nvarchar(128)", - maxLength: 128, - nullable: true); - - migrationBuilder.AddColumn( - name: "District", - table: "AbpTenants", - type: "nvarchar(128)", - maxLength: 128, - nullable: true); - - migrationBuilder.AddColumn( - name: "Email", - table: "AbpTenants", - type: "nvarchar(256)", - maxLength: 256, - nullable: true); - - migrationBuilder.AddColumn( - name: "Fax", - table: "AbpTenants", - type: "bigint", - nullable: false, - defaultValue: 0L); - - migrationBuilder.AddColumn( - name: "InstitutionName", - table: "AbpTenants", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Mobile", - table: "AbpTenants", - type: "bigint", - nullable: false, - defaultValue: 0L); - - migrationBuilder.AddColumn( - name: "Phone", - table: "AbpTenants", - type: "bigint", - nullable: false, - defaultValue: 0L); - - migrationBuilder.AddColumn( - name: "PostalCode", - table: "AbpTenants", - type: "nvarchar(10)", - maxLength: 10, - nullable: true); - - migrationBuilder.AddColumn( - name: "TaxOffice", - table: "AbpTenants", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "VknTckn", - table: "AbpTenants", - type: "bigint", - nullable: false, - defaultValue: 0L); - - migrationBuilder.AddColumn( - name: "Website", - table: "AbpTenants", - type: "nvarchar(256)", - maxLength: 256, - nullable: true); - - migrationBuilder.CreateTable( - name: "PBranch", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(max)", nullable: true), - Name = table.Column(type: "nvarchar(max)", nullable: true), - VknTckn = table.Column(type: "bigint", nullable: false), - TaxOffice = table.Column(type: "nvarchar(max)", nullable: true), - Address = table.Column(type: "nvarchar(max)", nullable: true), - Address2 = table.Column(type: "nvarchar(max)", nullable: true), - District = table.Column(type: "nvarchar(max)", nullable: true), - City = table.Column(type: "nvarchar(max)", nullable: true), - PostalCode = table.Column(type: "nvarchar(max)", nullable: true), - Phone = table.Column(type: "bigint", nullable: true), - Mobile = table.Column(type: "bigint", nullable: false), - Fax = table.Column(type: "bigint", nullable: true), - Email = table.Column(type: "nvarchar(max)", nullable: true), - Website = table.Column(type: "nvarchar(max)", nullable: true), - IsActive = table.Column(type: "bit", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_PBranch", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "PBranchUsers", - columns: table => new - { - UserId = table.Column(type: "uniqueidentifier", nullable: false), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Id = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_PBranchUsers", x => new { x.UserId, x.BranchId }); - }); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "PBranch"); - - migrationBuilder.DropTable( - name: "PBranchUsers"); - - migrationBuilder.DropColumn( - name: "IsBranch", - table: "PListForm"); - - migrationBuilder.DropColumn( - name: "IsBranch", - table: "PChart"); - - migrationBuilder.DropColumn( - name: "Address", - table: "AbpTenants"); - - migrationBuilder.DropColumn( - name: "Address2", - table: "AbpTenants"); - - migrationBuilder.DropColumn( - name: "City", - table: "AbpTenants"); - - migrationBuilder.DropColumn( - name: "District", - table: "AbpTenants"); - - migrationBuilder.DropColumn( - name: "Email", - table: "AbpTenants"); - - migrationBuilder.DropColumn( - name: "Fax", - table: "AbpTenants"); - - migrationBuilder.DropColumn( - name: "InstitutionName", - table: "AbpTenants"); - - migrationBuilder.DropColumn( - name: "Mobile", - table: "AbpTenants"); - - migrationBuilder.DropColumn( - name: "Phone", - table: "AbpTenants"); - - migrationBuilder.DropColumn( - name: "PostalCode", - table: "AbpTenants"); - - migrationBuilder.DropColumn( - name: "TaxOffice", - table: "AbpTenants"); - - migrationBuilder.DropColumn( - name: "VknTckn", - table: "AbpTenants"); - - migrationBuilder.DropColumn( - name: "Website", - table: "AbpTenants"); - } - } -} diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250618100205_NewDefitinationTables.Designer.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250618100205_NewDefitinationTables.Designer.cs deleted file mode 100644 index 2859c11e..00000000 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250618100205_NewDefitinationTables.Designer.cs +++ /dev/null @@ -1,4617 +0,0 @@ -// -using System; -using Kurs.Platform.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; - -#nullable disable - -namespace Kurs.Platform.Migrations -{ - [DbContext(typeof(PlatformDbContext))] - [Migration("20250618100205_NewDefitinationTables")] - partial class NewDefitinationTables - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "9.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("ContactTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.ToTable("PContactTag", (string)null); - }); - - modelBuilder.Entity("ContactTitle", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Abbreviation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.ToTable("PContactTitle", (string)null); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.Language", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CultureName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsEnabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MultipleCultures") - .HasColumnType("nvarchar(max)"); - - b.Property("TwoLetterISOLanguageName") - .HasColumnType("nvarchar(max)"); - - b.Property("UiCultureName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.HasKey("Id"); - - b.ToTable("PLanguage", (string)null); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", b => - { - b.Property("ResourceName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Key") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("ResourceName", "Key"); - - b.ToTable("PLanguageKey", (string)null); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CultureName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("Key") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ResourceName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("ResourceName", "Key"); - - b.ToTable("PLanguageText", (string)null); - }); - - modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Attachment") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("AttachmentParameter") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("AwsMessageId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("From") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MailParameter") - .HasMaxLength(8000) - .HasColumnType("nvarchar(max)"); - - b.Property("RelatedRecordId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SendStatus") - .HasColumnType("bit"); - - b.Property("SendTime") - .HasColumnType("datetime2"); - - b.Property("Table") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TableParameter") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("TemplateId") - .HasColumnType("uniqueidentifier"); - - b.Property("To") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.ToTable("PBackgroundWorker_MailQueue", (string)null); - }); - - modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueEvents", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AwsMessageId") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Event") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("EventDate") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MailAddress") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ResponseDescription") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PBackgroundWorker_MailQueueEvents", (string)null); - }); - - modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueTableFormat", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("Caption") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ColumnName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Css") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DataFormat") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DataType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FooterCss") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("HeaderCss") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("IsHidden") - .HasColumnType("bit"); - - b.Property("IsProtected") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("smallint"); - - b.Property("SubTotal") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Width") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex(new[] { "TableName", "Order" }, "IX_MailQueueTableFormat") - .IsUnique(); - - b.ToTable("PBackgroundWorker_MailQueueTableFormat", (string)null); - }); - - modelBuilder.Entity("Kurs.Notifications.Entities.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Identifier") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsRead") - .HasColumnType("bit"); - - b.Property("IsSent") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Message") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NotificationChannel") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("NotificationRuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("NotificationType") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("PNotification", (string)null); - }); - - modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Channel") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsCustomized") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NotificationType") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("RecipientId") - .HasColumnType("nvarchar(max)"); - - b.Property("RecipientType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PNotificationRule", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.AiBot", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BotName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PAiBot", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BackgroundWorker", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AfterSp") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("BeforeSp") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DataSourceCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Options") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkerType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("PBackgroundWorker", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Bank", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AddressLine1") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("AddressLine2") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("City") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Country") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("District") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Email") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("IdentifierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PostalCode") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.HasKey("Id"); - - b.ToTable("Banks"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BankAccount", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccountNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AccountOwner") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("BankId") - .HasColumnType("uniqueidentifier"); - - b.Property("CanTransferMoney") - .HasColumnType("bit"); - - b.Property("Company") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.HasIndex("BankId"); - - b.HasIndex("CurrencyId"); - - b.ToTable("BankAccounts"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Branch", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasColumnType("nvarchar(max)"); - - b.Property("Address2") - .HasColumnType("nvarchar(max)"); - - b.Property("City") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("District") - .HasColumnType("nvarchar(max)"); - - b.Property("Email") - .HasColumnType("nvarchar(max)"); - - b.Property("Fax") - .HasColumnType("bigint"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Mobile") - .HasColumnType("bigint"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Phone") - .HasColumnType("bigint"); - - b.Property("PostalCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxOffice") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("VknTckn") - .HasColumnType("bigint"); - - b.Property("Website") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PBranch", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BranchUsers", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "BranchId"); - - b.ToTable("PBranchUsers", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Chart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdaptiveLayoutJson") - .HasColumnType("nvarchar(max)"); - - b.Property("AnimationJson") - .HasColumnType("nvarchar(max)"); - - b.Property("AnnotationsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ArgumentAxisJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ChartCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CommonAnnotationsSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommonAxisSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommonJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommonPaneSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommonSeriesSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CrosshairJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CultureName") - .IsRequired() - .ValueGeneratedOnAdd() - .HasColumnType("nvarchar(max)") - .HasDefaultValue("en"); - - b.Property("DataSourceCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DataSourceJson") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExportJson") - .HasColumnType("nvarchar(max)"); - - b.Property("IsBranch") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsOrganizationUnit") - .HasColumnType("bit"); - - b.Property("IsTenant") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LegendJson") - .HasColumnType("nvarchar(max)"); - - b.Property("MarginJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PanesJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PermissionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("RoleId") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrollBarJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SeriesJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SizeJson") - .HasColumnType("nvarchar(max)"); - - b.Property("TitleJson") - .HasColumnType("nvarchar(max)"); - - b.Property("TooltipJson") - .HasColumnType("nvarchar(max)"); - - b.Property("UserId") - .HasColumnType("nvarchar(max)"); - - b.Property("ValueAxisJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ZoomAndPanJson") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PChart", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Country", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyCode") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("GroupName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PhoneCode") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("StateRequired") - .HasColumnType("bit"); - - b.Property("TaxLabel") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ZipRequired") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.HasIndex("GroupName"); - - b.ToTable("PCountry", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.CountryGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("PCountryGroup", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Currency", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LastUpdated") - .HasColumnType("datetime2"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Rate") - .HasColumnType("decimal(18,6)"); - - b.Property("Symbol") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.HasKey("Id"); - - b.ToTable("PCurrency", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.DataSource", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ConnectionString") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataSourceType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.ToTable("PDataSource", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.GlobalSearch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("Group") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("System") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Term") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .HasColumnType("nvarchar(max)"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PGlobalSearch", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.IpRestriction", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ResourceId") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("ResourceType") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("PIpRestriction", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ColumnOptionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommandColumnJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CultureName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomJsSourcesJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomStyleSourcesJson") - .HasColumnType("nvarchar(max)"); - - b.Property("DataSourceCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DefaultFilter") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleteCommand") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleteFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleteServiceAddress") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("EditingFormJson") - .HasColumnType("nvarchar(max)"); - - b.Property("EditingOptionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("FilterPanelJson") - .HasColumnType("nvarchar(max)"); - - b.Property("FilterRowJson") - .HasColumnType("nvarchar(max)"); - - b.Property("FormFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupPanelJson") - .HasColumnType("nvarchar(max)"); - - b.Property("HeaderFilterJson") - .HasColumnType("nvarchar(max)"); - - b.Property("Height") - .HasColumnType("int"); - - b.Property("InsertCommand") - .HasColumnType("nvarchar(max)"); - - b.Property("InsertFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("InsertServiceAddress") - .HasColumnType("nvarchar(max)"); - - b.Property("IsBranch") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsOrganizationUnit") - .HasColumnType("bit"); - - b.Property("IsSubForm") - .HasColumnType("bit"); - - b.Property("IsTenant") - .HasColumnType("bit"); - - b.Property("KeyFieldDbSourceType") - .HasColumnType("int"); - - b.Property("KeyFieldName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ListFormCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("ListFormType") - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("PageSize") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(10); - - b.Property("PagerOptionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PermissionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SearchPanelJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SelectCommand") - .HasColumnType("nvarchar(max)"); - - b.Property("SelectCommandType") - .HasColumnType("int"); - - b.Property("SelectFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SelectionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SortMode") - .HasColumnType("nvarchar(max)"); - - b.Property("StateStoringJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SubFormsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("Title") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateCommand") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateServiceAddress") - .HasColumnType("nvarchar(max)"); - - b.Property("Width") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("PListForm", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormCustomization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomizationData") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomizationType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("FilterName") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ListFormCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("RoleId") - .HasColumnType("nvarchar(max)"); - - b.Property("UserId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ListFormCode"); - - b.ToTable("PListFormCustomization", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormField", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Alignment") - .HasColumnType("nvarchar(max)"); - - b.Property("AllowSearch") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("BandName") - .HasColumnType("nvarchar(max)"); - - b.Property("CaptionName") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnCssClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnCssValue") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnCustomizationJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnFilterJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnHeaderJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnStylingJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CultureName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EditingJson") - .HasColumnType("nvarchar(max)"); - - b.Property("EditorOptions") - .HasColumnType("nvarchar(max)"); - - b.Property("FieldName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Format") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupSummaryJson") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupingJson") - .HasColumnType("nvarchar(max)"); - - b.Property("IsActive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("JoinTableJson") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ListFormCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("ListOrderNo") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(30); - - b.Property("LookupJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PermissionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PivotSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("RoleId") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDirection") - .HasColumnType("nvarchar(max)"); - - b.Property("SortIndex") - .HasColumnType("int"); - - b.Property("SourceDbType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(16); - - b.Property("TotalSummaryJson") - .HasColumnType("nvarchar(max)"); - - b.Property("UserId") - .HasColumnType("nvarchar(max)"); - - b.Property("ValidationRuleJson") - .HasColumnType("nvarchar(max)"); - - b.Property("Visible") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("Width") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(100); - - b.HasKey("Id"); - - b.HasIndex("ListFormCode"); - - b.ToTable("PListFormField", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CssClass") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CultureName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ElementId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Icon") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("ParentCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RequiredPermissionName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RoleId") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Target") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Url") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("UserId") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.ToTable("PMenu", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.PublicApi", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataSourceCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Method") - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("ParametersJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PermissionsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("Sql") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Url") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PPublicApi", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Sector", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("FullName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.ToTable("PSector", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.State", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("CountryCode") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("CountryCode", "Code") - .IsUnique() - .HasFilter("[CountryCode] IS NOT NULL AND [Code] IS NOT NULL"); - - b.ToTable("PState", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Uom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Ratio") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Rounding") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.HasKey("Id"); - - b.HasIndex("CategoryName"); - - b.ToTable("PUom", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.UomCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("PUomCategory", (string)null); - }); - - modelBuilder.Entity("Kurs.Settings.Entities.SettingDefinition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("DefaultValue") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DescriptionKey") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsEncrypted") - .HasColumnType("bit"); - - b.Property("IsInherited") - .HasColumnType("bit"); - - b.Property("IsVisibleToClients") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MainGroupKey") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("NameKey") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("Providers") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequiredPermissionName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("SelectOptions") - .HasColumnType("nvarchar(max)"); - - b.Property("SubGroupKey") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.ToTable("PSettingDefinition", (string)null); - }); - - modelBuilder.Entity("Skill", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("SkillTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TypeName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("SkillTypeId"); - - b.ToTable("PSkill", (string)null); - }); - - modelBuilder.Entity("SkillLevel", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDefault") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Progress") - .HasColumnType("int"); - - b.Property("SkillTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TypeName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("SkillTypeId"); - - b.ToTable("PSkillLevel", (string)null); - }); - - modelBuilder.Entity("SkillType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("PSkillType", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)") - .HasColumnName("ApplicationName"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("BrowserInfo"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientId"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientIpAddress"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("ClientName"); - - b.Property("Comments") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Comments"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("CorrelationId"); - - b.Property("Exceptions") - .HasColumnType("nvarchar(max)"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HttpMethod") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("HttpMethod"); - - b.Property("HttpStatusCode") - .HasColumnType("int") - .HasColumnName("HttpStatusCode"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorTenantId"); - - b.Property("ImpersonatorTenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ImpersonatorTenantName"); - - b.Property("ImpersonatorUserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorUserId"); - - b.Property("ImpersonatorUserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ImpersonatorUserName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("TenantName"); - - b.Property("Url") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Url"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("UserId"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId", "ExecutionTime"); - - b.ToTable("AbpAuditLogs", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2") - .HasColumnName("ExecutionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("MethodName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("MethodName"); - - b.Property("Parameters") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasColumnName("Parameters"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ServiceName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - - b.ToTable("AbpAuditLogActions", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ChangeTime") - .HasColumnType("datetime2") - .HasColumnName("ChangeTime"); - - b.Property("ChangeType") - .HasColumnType("tinyint") - .HasColumnName("ChangeType"); - - b.Property("EntityId") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityId"); - - b.Property("EntityTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityTypeFullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityTypeFullName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("EntityChangeId") - .HasColumnType("uniqueidentifier"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("NewValue"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("OriginalValue"); - - b.Property("PropertyName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("PropertyName"); - - b.Property("PropertyTypeFullName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PropertyTypeFullName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAbandoned") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastTryTime") - .HasColumnType("datetime2"); - - b.Property("NextTryTime") - .HasColumnType("datetime2"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint") - .HasDefaultValue((byte)15); - - b.Property("TryCount") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((short)0); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AllowedProviders") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("DefaultValue") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("IsAvailableToHost") - .HasColumnType("bit"); - - b.Property("IsVisibleToClients") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ParentName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ValueType") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("GroupName"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpFeatures", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureGroupDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpFeatureGroups", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey") - .IsUnique() - .HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); - - b.ToTable("AbpFeatureValues", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStatic") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Regex") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("RegexDescription") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AbpClaimTypes", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique() - .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - b.ToTable("AbpLinkUsers", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("EntityVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDefault") - .HasColumnType("bit") - .HasColumnName("IsDefault"); - - b.Property("IsPublic") - .HasColumnType("bit") - .HasColumnName("IsPublic"); - - b.Property("IsStatic") - .HasColumnType("bit") - .HasColumnName("IsStatic"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpRoles", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpRoleClaims", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Action") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Identity") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Action"); - - b.HasIndex("TenantId", "ApplicationName"); - - b.HasIndex("TenantId", "Identity"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSecurityLogs", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySession", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Device") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeviceInfo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IpAddresses") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("LastAccessed") - .HasColumnType("datetime2"); - - b.Property("SessionId") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("SignedIn") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("Device"); - - b.HasIndex("SessionId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSessions", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccessFailedCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0) - .HasColumnName("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Email"); - - b.Property("EmailConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("EmailConfirmed"); - - b.Property("EntityVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsActive") - .HasColumnType("bit") - .HasColumnName("IsActive"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsExternal") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsExternal"); - - b.Property("IsVerified") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LastPasswordChangeTime") - .HasColumnType("datetimeoffset"); - - b.Property("LockoutEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("LockoutEnabled"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("LoginEndDate") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Name"); - - b.Property("NormalizedEmail") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedEmail"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedUserName"); - - b.Property("PasswordHash") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("PasswordHash"); - - b.Property("PhoneNumber") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("PhoneNumber"); - - b.Property("PhoneNumberConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("PhoneNumberConfirmed"); - - b.Property("RocketUsername") - .HasColumnType("nvarchar(max)"); - - b.Property("SecurityStamp") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("SecurityStamp"); - - b.Property("ShouldChangePasswordOnNextLogin") - .HasColumnType("bit"); - - b.Property("Surname") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Surname"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TwoFactorEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("TwoFactorEnabled"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("Email"); - - b.HasIndex("NormalizedEmail"); - - b.HasIndex("NormalizedUserName"); - - b.HasIndex("UserName"); - - b.ToTable("AbpUsers", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AbpUserClaims", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserDelegation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("AbpUserDelegations", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderDisplayName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(196) - .HasColumnType("nvarchar(196)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "LoginProvider"); - - b.HasIndex("LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "UserId"); - - b.HasIndex("UserId", "OrganizationUnitId"); - - b.ToTable("AbpUserOrganizationUnits", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId", "UserId"); - - b.ToTable("AbpUserRoles", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AbpUserTokens", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(95)") - .HasColumnName("Code"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("DisplayName"); - - b.Property("EntityVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code"); - - b.HasIndex("ParentId"); - - b.ToTable("AbpOrganizationUnits", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "RoleId"); - - b.HasIndex("RoleId", "OrganizationUnitId"); - - b.ToTable("AbpOrganizationUnitRoles", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ClientId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ClientSecret") - .HasColumnType("nvarchar(max)"); - - b.Property("ClientType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ClientUri") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsentType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayNames") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("JsonWebKeySet") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LogoUri") - .HasColumnType("nvarchar(max)"); - - b.Property("Permissions") - .HasColumnType("nvarchar(max)"); - - b.Property("PostLogoutRedirectUris") - .HasColumnType("nvarchar(max)"); - - b.Property("Properties") - .HasColumnType("nvarchar(max)"); - - b.Property("RedirectUris") - .HasColumnType("nvarchar(max)"); - - b.Property("Requirements") - .HasColumnType("nvarchar(max)"); - - b.Property("Settings") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.ToTable("OpenIddictApplications", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Properties") - .HasColumnType("nvarchar(max)"); - - b.Property("Scopes") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Subject") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationId", "Status", "Subject", "Type"); - - b.ToTable("OpenIddictAuthorizations", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Scopes.OpenIddictScope", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Descriptions") - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayNames") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Properties") - .HasColumnType("nvarchar(max)"); - - b.Property("Resources") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("OpenIddictScopes", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Tokens.OpenIddictToken", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationId") - .HasColumnType("uniqueidentifier"); - - b.Property("AuthorizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationDate") - .HasColumnType("datetime2"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Payload") - .HasColumnType("nvarchar(max)"); - - b.Property("Properties") - .HasColumnType("nvarchar(max)"); - - b.Property("RedemptionDate") - .HasColumnType("datetime2"); - - b.Property("ReferenceId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Status") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Subject") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("AuthorizationId"); - - b.HasIndex("ReferenceId"); - - b.HasIndex("ApplicationId", "Status", "Subject", "Type"); - - b.ToTable("OpenIddictTokens", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("IsEnabled") - .HasColumnType("bit"); - - b.Property("MultiTenancySide") - .HasColumnType("tinyint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ParentName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Providers") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("StateCheckers") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("GroupName"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpPermissions", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey") - .IsUnique() - .HasFilter("[TenantId] IS NOT NULL"); - - b.ToTable("AbpPermissionGrants", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGroupDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpPermissionGroups", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey") - .IsUnique() - .HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); - - b.ToTable("AbpSettings", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.SettingDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("DefaultValue") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Description") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsEncrypted") - .HasColumnType("bit"); - - b.Property("IsInherited") - .HasColumnType("bit"); - - b.Property("IsVisibleToClients") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Providers") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpSettingDefinitions", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Address2") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("City") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("District") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Email") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EntityVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasColumnType("bigint"); - - b.Property("InstitutionName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsActive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Mobile") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Phone") - .HasColumnType("bigint"); - - b.Property("PostalCode") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TaxOffice") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("VknTckn") - .HasColumnType("bigint"); - - b.Property("Website") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpTenants", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("TenantId", "Name"); - - b.ToTable("AbpTenantConnectionStrings", (string)null); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b => - { - b.HasOne("Kurs.Languages.Entities.LanguageKey", null) - .WithMany("Texts") - .HasForeignKey("ResourceName", "Key") - .OnDelete(DeleteBehavior.SetNull); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BankAccount", b => - { - b.HasOne("Kurs.Platform.Entities.Bank", "Bank") - .WithMany() - .HasForeignKey("BankId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Kurs.Platform.Entities.Currency", "Currency") - .WithMany() - .HasForeignKey("CurrencyId"); - - b.Navigation("Bank"); - - b.Navigation("Currency"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Country", b => - { - b.HasOne("Kurs.Platform.Entities.CountryGroup", null) - .WithMany() - .HasForeignKey("GroupName") - .HasPrincipalKey("Name") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormCustomization", b => - { - b.HasOne("Kurs.Platform.Entities.ListForm", null) - .WithMany() - .HasForeignKey("ListFormCode") - .HasPrincipalKey("ListFormCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormField", b => - { - b.HasOne("Kurs.Platform.Entities.ListForm", null) - .WithMany() - .HasForeignKey("ListFormCode") - .HasPrincipalKey("ListFormCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.State", b => - { - b.HasOne("Kurs.Platform.Entities.Country", "Country") - .WithMany("States") - .HasForeignKey("CountryCode") - .HasPrincipalKey("Code") - .OnDelete(DeleteBehavior.Cascade); - - b.Navigation("Country"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Uom", b => - { - b.HasOne("Kurs.Platform.Entities.UomCategory", "UomCategory") - .WithMany("Units") - .HasForeignKey("CategoryName") - .HasPrincipalKey("Name") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("UomCategory"); - }); - - modelBuilder.Entity("Skill", b => - { - b.HasOne("SkillType", null) - .WithMany("Skills") - .HasForeignKey("SkillTypeId"); - }); - - modelBuilder.Entity("SkillLevel", b => - { - b.HasOne("SkillType", null) - .WithMany("Levels") - .HasForeignKey("SkillTypeId"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("Actions") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("EntityChanges") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("OrganizationUnits") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany("Roles") - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", b => - { - b.HasOne("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", null) - .WithMany() - .HasForeignKey("ApplicationId"); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Tokens.OpenIddictToken", b => - { - b.HasOne("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", null) - .WithMany() - .HasForeignKey("ApplicationId"); - - b.HasOne("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", null) - .WithMany() - .HasForeignKey("AuthorizationId"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.HasOne("Volo.Abp.TenantManagement.Tenant", null) - .WithMany("ConnectionStrings") - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", b => - { - b.Navigation("Texts"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Country", b => - { - b.Navigation("States"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.UomCategory", b => - { - b.Navigation("Units"); - }); - - modelBuilder.Entity("SkillType", b => - { - b.Navigation("Levels"); - - b.Navigation("Skills"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Navigation("Actions"); - - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Navigation("Claims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("OrganizationUnits"); - - b.Navigation("Roles"); - - b.Navigation("Tokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Navigation("Roles"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Navigation("ConnectionStrings"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250622123512_AddBlog.Designer.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250622123512_AddBlog.Designer.cs deleted file mode 100644 index 9d8f0be9..00000000 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250622123512_AddBlog.Designer.cs +++ /dev/null @@ -1,4820 +0,0 @@ -// -using System; -using Kurs.Platform.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; - -#nullable disable - -namespace Kurs.Platform.Migrations -{ - [DbContext(typeof(PlatformDbContext))] - [Migration("20250622123512_AddBlog")] - partial class AddBlog - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "9.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("ContactTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.ToTable("PContactTag", (string)null); - }); - - modelBuilder.Entity("ContactTitle", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Abbreviation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.ToTable("PContactTitle", (string)null); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.Language", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CultureName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsEnabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MultipleCultures") - .HasColumnType("nvarchar(max)"); - - b.Property("TwoLetterISOLanguageName") - .HasColumnType("nvarchar(max)"); - - b.Property("UiCultureName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.HasKey("Id"); - - b.ToTable("PLanguage", (string)null); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", b => - { - b.Property("ResourceName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Key") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("ResourceName", "Key"); - - b.ToTable("PLanguageKey", (string)null); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CultureName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("Key") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ResourceName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.HasKey("Id"); - - b.HasIndex("ResourceName", "Key"); - - b.ToTable("PLanguageText", (string)null); - }); - - modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Attachment") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("AttachmentParameter") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("AwsMessageId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("From") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MailParameter") - .HasMaxLength(8000) - .HasColumnType("nvarchar(max)"); - - b.Property("RelatedRecordId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SendStatus") - .HasColumnType("bit"); - - b.Property("SendTime") - .HasColumnType("datetime2"); - - b.Property("Table") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TableParameter") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("TemplateId") - .HasColumnType("uniqueidentifier"); - - b.Property("To") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.ToTable("PBackgroundWorker_MailQueue", (string)null); - }); - - modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueEvents", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AwsMessageId") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Event") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("EventDate") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MailAddress") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ResponseDescription") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PBackgroundWorker_MailQueueEvents", (string)null); - }); - - modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueTableFormat", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("Caption") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ColumnName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Css") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DataFormat") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DataType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FooterCss") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("HeaderCss") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("IsHidden") - .HasColumnType("bit"); - - b.Property("IsProtected") - .HasColumnType("bit"); - - b.Property("Order") - .HasColumnType("smallint"); - - b.Property("SubTotal") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Width") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex(new[] { "TableName", "Order" }, "IX_MailQueueTableFormat") - .IsUnique(); - - b.ToTable("PBackgroundWorker_MailQueueTableFormat", (string)null); - }); - - modelBuilder.Entity("Kurs.Notifications.Entities.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Identifier") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsRead") - .HasColumnType("bit"); - - b.Property("IsSent") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Message") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("NotificationChannel") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("NotificationRuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("NotificationType") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("PNotification", (string)null); - }); - - modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Channel") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsCustomized") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsFixed") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NotificationType") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("RecipientId") - .HasColumnType("nvarchar(max)"); - - b.Property("RecipientType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PNotificationRule", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Blog.BlogCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("DisplayOrder") - .HasColumnType("int"); - - b.Property("Icon") - .HasColumnType("nvarchar(max)"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PostCount") - .HasColumnType("int"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Slug"); - - b.ToTable("PBlogCategories", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Blog.BlogPost", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuthorId") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("CommentCount") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContentEn") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ContentTr") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CoverImage") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsPublished") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LikeCount") - .HasColumnType("int"); - - b.Property("PublishedAt") - .HasColumnType("datetime2"); - - b.Property("ReadTime") - .HasColumnType("nvarchar(max)"); - - b.Property("Slug") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Summary") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ViewCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CategoryId"); - - b.HasIndex("IsPublished"); - - b.HasIndex("PublishedAt"); - - b.HasIndex("Slug"); - - b.ToTable("PBlogPosts", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.AiBot", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BotName") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PAiBot", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BackgroundWorker", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AfterSp") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("BeforeSp") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DataSourceCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Options") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkerType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("PBackgroundWorker", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Bank", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AddressLine1") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("AddressLine2") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("City") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Country") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("District") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Email") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("IdentifierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PostalCode") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.HasKey("Id"); - - b.ToTable("Banks"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BankAccount", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccountNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AccountOwner") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("BankId") - .HasColumnType("uniqueidentifier"); - - b.Property("CanTransferMoney") - .HasColumnType("bit"); - - b.Property("Company") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.HasIndex("BankId"); - - b.HasIndex("CurrencyId"); - - b.ToTable("BankAccounts"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Branch", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasColumnType("nvarchar(max)"); - - b.Property("Address2") - .HasColumnType("nvarchar(max)"); - - b.Property("City") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("District") - .HasColumnType("nvarchar(max)"); - - b.Property("Email") - .HasColumnType("nvarchar(max)"); - - b.Property("Fax") - .HasColumnType("bigint"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Mobile") - .HasColumnType("bigint"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("Phone") - .HasColumnType("bigint"); - - b.Property("PostalCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxOffice") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("VknTckn") - .HasColumnType("bigint"); - - b.Property("Website") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PBranch", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BranchUsers", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "BranchId"); - - b.ToTable("PBranchUsers", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Chart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdaptiveLayoutJson") - .HasColumnType("nvarchar(max)"); - - b.Property("AnimationJson") - .HasColumnType("nvarchar(max)"); - - b.Property("AnnotationsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ArgumentAxisJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ChartCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CommonAnnotationsSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommonAxisSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommonJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommonPaneSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommonSeriesSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CrosshairJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CultureName") - .IsRequired() - .ValueGeneratedOnAdd() - .HasColumnType("nvarchar(max)") - .HasDefaultValue("en"); - - b.Property("DataSourceCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DataSourceJson") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExportJson") - .HasColumnType("nvarchar(max)"); - - b.Property("IsBranch") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsOrganizationUnit") - .HasColumnType("bit"); - - b.Property("IsTenant") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LegendJson") - .HasColumnType("nvarchar(max)"); - - b.Property("MarginJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PanesJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PermissionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("RoleId") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrollBarJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SeriesJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SizeJson") - .HasColumnType("nvarchar(max)"); - - b.Property("TitleJson") - .HasColumnType("nvarchar(max)"); - - b.Property("TooltipJson") - .HasColumnType("nvarchar(max)"); - - b.Property("UserId") - .HasColumnType("nvarchar(max)"); - - b.Property("ValueAxisJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ZoomAndPanJson") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PChart", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Country", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyCode") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("GroupName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PhoneCode") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("StateRequired") - .HasColumnType("bit"); - - b.Property("TaxLabel") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ZipRequired") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.HasIndex("GroupName"); - - b.ToTable("PCountry", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.CountryGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("PCountryGroup", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Currency", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LastUpdated") - .HasColumnType("datetime2"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Rate") - .HasColumnType("decimal(18,6)"); - - b.Property("Symbol") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.HasKey("Id"); - - b.ToTable("PCurrency", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.DataSource", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ConnectionString") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataSourceType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.ToTable("PDataSource", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.GlobalSearch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("Group") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("System") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Term") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .HasColumnType("nvarchar(max)"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PGlobalSearch", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.IpRestriction", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IP") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ResourceId") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("ResourceType") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("PIpRestriction", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ColumnOptionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CommandColumnJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CultureName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomJsSourcesJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomStyleSourcesJson") - .HasColumnType("nvarchar(max)"); - - b.Property("DataSourceCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DefaultFilter") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleteCommand") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleteFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleteServiceAddress") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("EditingFormJson") - .HasColumnType("nvarchar(max)"); - - b.Property("EditingOptionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("FilterPanelJson") - .HasColumnType("nvarchar(max)"); - - b.Property("FilterRowJson") - .HasColumnType("nvarchar(max)"); - - b.Property("FormFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupPanelJson") - .HasColumnType("nvarchar(max)"); - - b.Property("HeaderFilterJson") - .HasColumnType("nvarchar(max)"); - - b.Property("Height") - .HasColumnType("int"); - - b.Property("InsertCommand") - .HasColumnType("nvarchar(max)"); - - b.Property("InsertFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("InsertServiceAddress") - .HasColumnType("nvarchar(max)"); - - b.Property("IsBranch") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsOrganizationUnit") - .HasColumnType("bit"); - - b.Property("IsSubForm") - .HasColumnType("bit"); - - b.Property("IsTenant") - .HasColumnType("bit"); - - b.Property("KeyFieldDbSourceType") - .HasColumnType("int"); - - b.Property("KeyFieldName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ListFormCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("ListFormType") - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("PageSize") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(10); - - b.Property("PagerOptionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PermissionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SearchPanelJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SelectCommand") - .HasColumnType("nvarchar(max)"); - - b.Property("SelectCommandType") - .HasColumnType("int"); - - b.Property("SelectFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SelectionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SortMode") - .HasColumnType("nvarchar(max)"); - - b.Property("StateStoringJson") - .HasColumnType("nvarchar(max)"); - - b.Property("SubFormsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("Title") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateCommand") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateFieldsDefaultValueJson") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateServiceAddress") - .HasColumnType("nvarchar(max)"); - - b.Property("Width") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("PListForm", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormCustomization", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomizationData") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomizationType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("FilterName") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ListFormCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("RoleId") - .HasColumnType("nvarchar(max)"); - - b.Property("UserId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ListFormCode"); - - b.ToTable("PListFormCustomization", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormField", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Alignment") - .HasColumnType("nvarchar(max)"); - - b.Property("AllowSearch") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("BandName") - .HasColumnType("nvarchar(max)"); - - b.Property("CaptionName") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnCssClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnCssValue") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnCustomizationJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnFilterJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnHeaderJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ColumnStylingJson") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CultureName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EditingJson") - .HasColumnType("nvarchar(max)"); - - b.Property("EditorOptions") - .HasColumnType("nvarchar(max)"); - - b.Property("FieldName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Format") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupSummaryJson") - .HasColumnType("nvarchar(max)"); - - b.Property("GroupingJson") - .HasColumnType("nvarchar(max)"); - - b.Property("IsActive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("JoinTableJson") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ListFormCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("ListOrderNo") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(30); - - b.Property("LookupJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PermissionJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PivotSettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("RoleId") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDirection") - .HasColumnType("nvarchar(max)"); - - b.Property("SortIndex") - .HasColumnType("int"); - - b.Property("SourceDbType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(16); - - b.Property("TotalSummaryJson") - .HasColumnType("nvarchar(max)"); - - b.Property("UserId") - .HasColumnType("nvarchar(max)"); - - b.Property("ValidationRuleJson") - .HasColumnType("nvarchar(max)"); - - b.Property("Visible") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("Width") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(100); - - b.HasKey("Id"); - - b.HasIndex("ListFormCode"); - - b.ToTable("PListFormField", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Menu", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CssClass") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CultureName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ElementId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Icon") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDisabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("ParentCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RequiredPermissionName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RoleId") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Target") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Url") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("UserId") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.ToTable("PMenu", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.PublicApi", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataSourceCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Method") - .HasColumnType("nvarchar(max)"); - - b.Property("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("ParametersJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PermissionsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("Sql") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Url") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("PPublicApi", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Sector", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("FullName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.ToTable("PSector", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.State", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("CountryCode") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("CountryCode", "Code") - .IsUnique() - .HasFilter("[CountryCode] IS NOT NULL AND [Code] IS NOT NULL"); - - b.ToTable("PState", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Uom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Ratio") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Rounding") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.HasKey("Id"); - - b.HasIndex("CategoryName"); - - b.ToTable("PUom", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.UomCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("PUomCategory", (string)null); - }); - - modelBuilder.Entity("Kurs.Settings.Entities.SettingDefinition", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("DefaultValue") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DescriptionKey") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsEncrypted") - .HasColumnType("bit"); - - b.Property("IsInherited") - .HasColumnType("bit"); - - b.Property("IsVisibleToClients") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MainGroupKey") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("NameKey") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("Providers") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequiredPermissionName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("SelectOptions") - .HasColumnType("nvarchar(max)"); - - b.Property("SubGroupKey") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.ToTable("PSettingDefinition", (string)null); - }); - - modelBuilder.Entity("Skill", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("SkillTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TypeName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("SkillTypeId"); - - b.ToTable("PSkill", (string)null); - }); - - modelBuilder.Entity("SkillLevel", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDefault") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Progress") - .HasColumnType("int"); - - b.Property("SkillTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TypeName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("SkillTypeId"); - - b.ToTable("PSkillLevel", (string)null); - }); - - modelBuilder.Entity("SkillType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("PSkillType", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)") - .HasColumnName("ApplicationName"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("BrowserInfo"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientId"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientIpAddress"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("ClientName"); - - b.Property("Comments") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Comments"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("CorrelationId"); - - b.Property("Exceptions") - .HasColumnType("nvarchar(max)"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HttpMethod") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("HttpMethod"); - - b.Property("HttpStatusCode") - .HasColumnType("int") - .HasColumnName("HttpStatusCode"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorTenantId"); - - b.Property("ImpersonatorTenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ImpersonatorTenantName"); - - b.Property("ImpersonatorUserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorUserId"); - - b.Property("ImpersonatorUserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ImpersonatorUserName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("TenantName"); - - b.Property("Url") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Url"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("UserId"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId", "ExecutionTime"); - - b.ToTable("AbpAuditLogs", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2") - .HasColumnName("ExecutionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("MethodName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("MethodName"); - - b.Property("Parameters") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasColumnName("Parameters"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ServiceName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - - b.ToTable("AbpAuditLogActions", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ChangeTime") - .HasColumnType("datetime2") - .HasColumnName("ChangeTime"); - - b.Property("ChangeType") - .HasColumnType("tinyint") - .HasColumnName("ChangeType"); - - b.Property("EntityId") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityId"); - - b.Property("EntityTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityTypeFullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityTypeFullName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("EntityChangeId") - .HasColumnType("uniqueidentifier"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("NewValue"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("OriginalValue"); - - b.Property("PropertyName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("PropertyName"); - - b.Property("PropertyTypeFullName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PropertyTypeFullName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAbandoned") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastTryTime") - .HasColumnType("datetime2"); - - b.Property("NextTryTime") - .HasColumnType("datetime2"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint") - .HasDefaultValue((byte)15); - - b.Property("TryCount") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((short)0); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AllowedProviders") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("DefaultValue") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("IsAvailableToHost") - .HasColumnType("bit"); - - b.Property("IsVisibleToClients") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ParentName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ValueType") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("GroupName"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpFeatures", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureGroupDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpFeatureGroups", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey") - .IsUnique() - .HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); - - b.ToTable("AbpFeatureValues", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStatic") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Regex") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("RegexDescription") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AbpClaimTypes", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique() - .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - b.ToTable("AbpLinkUsers", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("EntityVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDefault") - .HasColumnType("bit") - .HasColumnName("IsDefault"); - - b.Property("IsPublic") - .HasColumnType("bit") - .HasColumnName("IsPublic"); - - b.Property("IsStatic") - .HasColumnType("bit") - .HasColumnName("IsStatic"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpRoles", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpRoleClaims", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Action") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Identity") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Action"); - - b.HasIndex("TenantId", "ApplicationName"); - - b.HasIndex("TenantId", "Identity"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSecurityLogs", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySession", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Device") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeviceInfo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IpAddresses") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("LastAccessed") - .HasColumnType("datetime2"); - - b.Property("SessionId") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("SignedIn") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("Device"); - - b.HasIndex("SessionId"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSessions", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccessFailedCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0) - .HasColumnName("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Email"); - - b.Property("EmailConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("EmailConfirmed"); - - b.Property("EntityVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsActive") - .HasColumnType("bit") - .HasColumnName("IsActive"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsExternal") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsExternal"); - - b.Property("IsVerified") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LastPasswordChangeTime") - .HasColumnType("datetimeoffset"); - - b.Property("LockoutEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("LockoutEnabled"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("LoginEndDate") - .HasColumnType("datetime2"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Name"); - - b.Property("NormalizedEmail") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedEmail"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedUserName"); - - b.Property("PasswordHash") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("PasswordHash"); - - b.Property("PhoneNumber") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("PhoneNumber"); - - b.Property("PhoneNumberConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("PhoneNumberConfirmed"); - - b.Property("RocketUsername") - .HasColumnType("nvarchar(max)"); - - b.Property("SecurityStamp") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("SecurityStamp"); - - b.Property("ShouldChangePasswordOnNextLogin") - .HasColumnType("bit"); - - b.Property("Surname") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Surname"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TwoFactorEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("TwoFactorEnabled"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("Email"); - - b.HasIndex("NormalizedEmail"); - - b.HasIndex("NormalizedUserName"); - - b.HasIndex("UserName"); - - b.ToTable("AbpUsers", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AbpUserClaims", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserDelegation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasColumnType("datetime2"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("AbpUserDelegations", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderDisplayName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(196) - .HasColumnType("nvarchar(196)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "LoginProvider"); - - b.HasIndex("LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "UserId"); - - b.HasIndex("UserId", "OrganizationUnitId"); - - b.ToTable("AbpUserOrganizationUnits", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId", "UserId"); - - b.ToTable("AbpUserRoles", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AbpUserTokens", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(95)") - .HasColumnName("Code"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("DisplayName"); - - b.Property("EntityVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code"); - - b.HasIndex("ParentId"); - - b.ToTable("AbpOrganizationUnits", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "RoleId"); - - b.HasIndex("RoleId", "OrganizationUnitId"); - - b.ToTable("AbpOrganizationUnitRoles", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ClientId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ClientSecret") - .HasColumnType("nvarchar(max)"); - - b.Property("ClientType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ClientUri") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsentType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayNames") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("JsonWebKeySet") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LogoUri") - .HasColumnType("nvarchar(max)"); - - b.Property("Permissions") - .HasColumnType("nvarchar(max)"); - - b.Property("PostLogoutRedirectUris") - .HasColumnType("nvarchar(max)"); - - b.Property("Properties") - .HasColumnType("nvarchar(max)"); - - b.Property("RedirectUris") - .HasColumnType("nvarchar(max)"); - - b.Property("Requirements") - .HasColumnType("nvarchar(max)"); - - b.Property("Settings") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.ToTable("OpenIddictApplications", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Properties") - .HasColumnType("nvarchar(max)"); - - b.Property("Scopes") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Subject") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationId", "Status", "Subject", "Type"); - - b.ToTable("OpenIddictAuthorizations", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Scopes.OpenIddictScope", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Descriptions") - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayName") - .HasColumnType("nvarchar(max)"); - - b.Property("DisplayNames") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Properties") - .HasColumnType("nvarchar(max)"); - - b.Property("Resources") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("OpenIddictScopes", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Tokens.OpenIddictToken", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationId") - .HasColumnType("uniqueidentifier"); - - b.Property("AuthorizationId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationDate") - .HasColumnType("datetime2"); - - b.Property("ExpirationDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Payload") - .HasColumnType("nvarchar(max)"); - - b.Property("Properties") - .HasColumnType("nvarchar(max)"); - - b.Property("RedemptionDate") - .HasColumnType("datetime2"); - - b.Property("ReferenceId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Status") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Subject") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("AuthorizationId"); - - b.HasIndex("ReferenceId"); - - b.HasIndex("ApplicationId", "Status", "Subject", "Type"); - - b.ToTable("OpenIddictTokens", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("IsEnabled") - .HasColumnType("bit"); - - b.Property("MultiTenancySide") - .HasColumnType("tinyint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ParentName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Providers") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("StateCheckers") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("GroupName"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpPermissions", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey") - .IsUnique() - .HasFilter("[TenantId] IS NOT NULL"); - - b.ToTable("AbpPermissionGrants", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGroupDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpPermissionGroups", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey") - .IsUnique() - .HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); - - b.ToTable("AbpSettings", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.SettingDefinitionRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("DefaultValue") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Description") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsEncrypted") - .HasColumnType("bit"); - - b.Property("IsInherited") - .HasColumnType("bit"); - - b.Property("IsVisibleToClients") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Providers") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("Name") - .IsUnique(); - - b.ToTable("AbpSettingDefinitions", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Address2") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("City") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .IsRequired() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("District") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Email") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EntityVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasColumnType("bigint"); - - b.Property("InstitutionName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsActive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Mobile") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Phone") - .HasColumnType("bigint"); - - b.Property("PostalCode") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TaxOffice") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("VknTckn") - .HasColumnType("bigint"); - - b.Property("Website") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpTenants", (string)null); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("TenantId", "Name"); - - b.ToTable("AbpTenantConnectionStrings", (string)null); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b => - { - b.HasOne("Kurs.Languages.Entities.LanguageKey", null) - .WithMany("Texts") - .HasForeignKey("ResourceName", "Key") - .OnDelete(DeleteBehavior.SetNull); - }); - - modelBuilder.Entity("Kurs.Platform.Blog.BlogPost", b => - { - b.HasOne("Kurs.Platform.Blog.BlogCategory", "Category") - .WithMany("Posts") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Category"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BankAccount", b => - { - b.HasOne("Kurs.Platform.Entities.Bank", "Bank") - .WithMany() - .HasForeignKey("BankId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Kurs.Platform.Entities.Currency", "Currency") - .WithMany() - .HasForeignKey("CurrencyId"); - - b.Navigation("Bank"); - - b.Navigation("Currency"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Country", b => - { - b.HasOne("Kurs.Platform.Entities.CountryGroup", null) - .WithMany() - .HasForeignKey("GroupName") - .HasPrincipalKey("Name") - .OnDelete(DeleteBehavior.Restrict); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormCustomization", b => - { - b.HasOne("Kurs.Platform.Entities.ListForm", null) - .WithMany() - .HasForeignKey("ListFormCode") - .HasPrincipalKey("ListFormCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormField", b => - { - b.HasOne("Kurs.Platform.Entities.ListForm", null) - .WithMany() - .HasForeignKey("ListFormCode") - .HasPrincipalKey("ListFormCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.State", b => - { - b.HasOne("Kurs.Platform.Entities.Country", "Country") - .WithMany("States") - .HasForeignKey("CountryCode") - .HasPrincipalKey("Code") - .OnDelete(DeleteBehavior.Cascade); - - b.Navigation("Country"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Uom", b => - { - b.HasOne("Kurs.Platform.Entities.UomCategory", "UomCategory") - .WithMany("Units") - .HasForeignKey("CategoryName") - .HasPrincipalKey("Name") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("UomCategory"); - }); - - modelBuilder.Entity("Skill", b => - { - b.HasOne("SkillType", null) - .WithMany("Skills") - .HasForeignKey("SkillTypeId"); - }); - - modelBuilder.Entity("SkillLevel", b => - { - b.HasOne("SkillType", null) - .WithMany("Levels") - .HasForeignKey("SkillTypeId"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("Actions") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("EntityChanges") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("OrganizationUnits") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany("Roles") - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", b => - { - b.HasOne("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", null) - .WithMany() - .HasForeignKey("ApplicationId"); - }); - - modelBuilder.Entity("Volo.Abp.OpenIddict.Tokens.OpenIddictToken", b => - { - b.HasOne("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", null) - .WithMany() - .HasForeignKey("ApplicationId"); - - b.HasOne("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", null) - .WithMany() - .HasForeignKey("AuthorizationId"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.HasOne("Volo.Abp.TenantManagement.Tenant", null) - .WithMany("ConnectionStrings") - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", b => - { - b.Navigation("Texts"); - }); - - modelBuilder.Entity("Kurs.Platform.Blog.BlogCategory", b => - { - b.Navigation("Posts"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Country", b => - { - b.Navigation("States"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.UomCategory", b => - { - b.Navigation("Units"); - }); - - modelBuilder.Entity("SkillType", b => - { - b.Navigation("Levels"); - - b.Navigation("Skills"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Navigation("Actions"); - - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Navigation("Claims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("OrganizationUnits"); - - b.Navigation("Roles"); - - b.Navigation("Tokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Navigation("Roles"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Navigation("ConnectionStrings"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250622123512_AddBlog.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250622123512_AddBlog.cs deleted file mode 100644 index 91657c34..00000000 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250622123512_AddBlog.cs +++ /dev/null @@ -1,117 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Kurs.Platform.Migrations -{ - /// - public partial class AddBlog : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "PBlogCategories", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - Slug = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), - Icon = table.Column(type: "nvarchar(max)", nullable: true), - DisplayOrder = table.Column(type: "int", nullable: false), - IsActive = table.Column(type: "bit", nullable: false), - PostCount = table.Column(type: "int", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_PBlogCategories", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "PBlogPosts", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - Slug = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - ContentTr = table.Column(type: "nvarchar(max)", nullable: false), - ContentEn = table.Column(type: "nvarchar(max)", nullable: false), - Summary = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false), - CoverImage = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), - ReadTime = table.Column(type: "nvarchar(max)", nullable: true), - CategoryId = table.Column(type: "uniqueidentifier", nullable: false), - AuthorId = table.Column(type: "uniqueidentifier", nullable: false), - ViewCount = table.Column(type: "int", nullable: false), - LikeCount = table.Column(type: "int", nullable: false), - CommentCount = table.Column(type: "int", nullable: false), - IsPublished = table.Column(type: "bit", nullable: false), - PublishedAt = table.Column(type: "datetime2", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_PBlogPosts", x => x.Id); - table.ForeignKey( - name: "FK_PBlogPosts_PBlogCategories_CategoryId", - column: x => x.CategoryId, - principalTable: "PBlogCategories", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateIndex( - name: "IX_PBlogCategories_Slug", - table: "PBlogCategories", - column: "Slug"); - - migrationBuilder.CreateIndex( - name: "IX_PBlogPosts_CategoryId", - table: "PBlogPosts", - column: "CategoryId"); - - migrationBuilder.CreateIndex( - name: "IX_PBlogPosts_IsPublished", - table: "PBlogPosts", - column: "IsPublished"); - - migrationBuilder.CreateIndex( - name: "IX_PBlogPosts_PublishedAt", - table: "PBlogPosts", - column: "PublishedAt"); - - migrationBuilder.CreateIndex( - name: "IX_PBlogPosts_Slug", - table: "PBlogPosts", - column: "Slug"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "PBlogPosts"); - - migrationBuilder.DropTable( - name: "PBlogCategories"); - } - } -} diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250623190205_AddForum.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250623190205_AddForum.cs deleted file mode 100644 index b1563afe..00000000 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250623190205_AddForum.cs +++ /dev/null @@ -1,168 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Kurs.Platform.Migrations -{ - /// - public partial class AddForum : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "PForumCategories", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - Slug = table.Column(type: "nvarchar(max)", nullable: true), - Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), - Icon = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DisplayOrder = table.Column(type: "int", nullable: false), - IsActive = table.Column(type: "bit", nullable: false), - IsLocked = table.Column(type: "bit", nullable: false), - TopicCount = table.Column(type: "int", nullable: false), - PostCount = table.Column(type: "int", nullable: false), - LastPostId = table.Column(type: "uniqueidentifier", nullable: true), - LastPostDate = table.Column(type: "datetime2", nullable: true), - LastPostUserId = table.Column(type: "uniqueidentifier", nullable: true), - LastPostUserName = table.Column(type: "nvarchar(max)", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_PForumCategories", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "PForumTopics", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - Content = table.Column(type: "nvarchar(max)", nullable: false), - CategoryId = table.Column(type: "uniqueidentifier", nullable: false), - AuthorId = table.Column(type: "uniqueidentifier", nullable: false), - AuthorName = table.Column(type: "nvarchar(max)", nullable: true), - ViewCount = table.Column(type: "int", nullable: false), - ReplyCount = table.Column(type: "int", nullable: false), - LikeCount = table.Column(type: "int", nullable: false), - IsPinned = table.Column(type: "bit", nullable: false), - IsLocked = table.Column(type: "bit", nullable: false), - IsSolved = table.Column(type: "bit", nullable: false), - LastPostId = table.Column(type: "uniqueidentifier", nullable: true), - LastPostDate = table.Column(type: "datetime2", nullable: true), - LastPostUserId = table.Column(type: "uniqueidentifier", nullable: true), - LastPostUserName = table.Column(type: "nvarchar(max)", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_PForumTopics", x => x.Id); - table.ForeignKey( - name: "FK_PForumTopics_PForumCategories_CategoryId", - column: x => x.CategoryId, - principalTable: "PForumCategories", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "PForumPosts", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TopicId = table.Column(type: "uniqueidentifier", nullable: false), - Content = table.Column(type: "nvarchar(max)", nullable: false), - AuthorId = table.Column(type: "uniqueidentifier", nullable: false), - AuthorName = table.Column(type: "nvarchar(max)", nullable: true), - LikeCount = table.Column(type: "int", nullable: false), - IsAcceptedAnswer = table.Column(type: "bit", nullable: false), - ParentPostId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_PForumPosts", x => x.Id); - table.ForeignKey( - name: "FK_PForumPosts_PForumPosts_ParentPostId", - column: x => x.ParentPostId, - principalTable: "PForumPosts", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_PForumPosts_PForumTopics_TopicId", - column: x => x.TopicId, - principalTable: "PForumTopics", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_PForumCategories_DisplayOrder", - table: "PForumCategories", - column: "DisplayOrder"); - - migrationBuilder.CreateIndex( - name: "IX_PForumPosts_ParentPostId", - table: "PForumPosts", - column: "ParentPostId"); - - migrationBuilder.CreateIndex( - name: "IX_PForumPosts_TopicId", - table: "PForumPosts", - column: "TopicId"); - - migrationBuilder.CreateIndex( - name: "IX_PForumTopics_CategoryId", - table: "PForumTopics", - column: "CategoryId"); - - migrationBuilder.CreateIndex( - name: "IX_PForumTopics_IsPinned", - table: "PForumTopics", - column: "IsPinned"); - - migrationBuilder.CreateIndex( - name: "IX_PForumTopics_LastPostDate", - table: "PForumTopics", - column: "LastPostDate"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "PForumPosts"); - - migrationBuilder.DropTable( - name: "PForumTopics"); - - migrationBuilder.DropTable( - name: "PForumCategories"); - } - } -} diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250623190205_AddForum.Designer.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250627070749_NewTables.Designer.cs similarity index 99% rename from api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250623190205_AddForum.Designer.cs rename to api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250627070749_NewTables.Designer.cs index ce7634c9..4e6aef70 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250623190205_AddForum.Designer.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250627070749_NewTables.Designer.cs @@ -13,8 +13,8 @@ using Volo.Abp.EntityFrameworkCore; namespace Kurs.Platform.Migrations { [DbContext(typeof(PlatformDbContext))] - [Migration("20250623190205_AddForum")] - partial class AddForum + [Migration("20250627070749_NewTables")] + partial class NewTables { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -174,9 +174,6 @@ namespace Kurs.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); - b.Property("MultipleCultures") - .HasColumnType("nvarchar(max)"); - b.Property("TwoLetterISOLanguageName") .HasColumnType("nvarchar(max)"); @@ -946,8 +943,7 @@ namespace Kurs.Platform.Migrations .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -1047,8 +1043,7 @@ namespace Kurs.Platform.Migrations .HasColumnType("nvarchar(512)"); b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); + .HasColumnType("uniqueidentifier"); b.Property("Title") .IsRequired() @@ -1088,6 +1083,9 @@ namespace Kurs.Platform.Migrations b.Property("Code") .HasColumnType("nvarchar(max)"); + b.Property("Country") + .HasColumnType("nvarchar(max)"); + b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); @@ -1317,6 +1315,63 @@ namespace Kurs.Platform.Migrations b.ToTable("PChart", (string)null); }); + modelBuilder.Entity("Kurs.Platform.Entities.City", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("Code") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + + b.Property("CountryCode") + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); + + b.HasKey("Id"); + + b.HasIndex("CountryCode", "Code") + .IsUnique() + .HasFilter("[CountryCode] IS NOT NULL AND [Code] IS NOT NULL"); + + b.ToTable("PCity", (string)null); + }); + modelBuilder.Entity("Kurs.Platform.Entities.Country", b => { b.Property("Id") @@ -1370,9 +1425,9 @@ namespace Kurs.Platform.Migrations .HasMaxLength(128) .HasColumnType("nvarchar(128)"); - b.Property("PhoneCode") + b.Property("PhoneCode") .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); + .HasColumnType("int"); b.Property("StateRequired") .HasColumnType("bit"); @@ -2266,63 +2321,6 @@ namespace Kurs.Platform.Migrations b.ToTable("PSector", (string)null); }); - modelBuilder.Entity("Kurs.Platform.Entities.State", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("CountryCode") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("CountryCode", "Code") - .IsUnique() - .HasFilter("[CountryCode] IS NOT NULL AND [Code] IS NOT NULL"); - - b.ToTable("PState", (string)null); - }); - modelBuilder.Entity("Kurs.Platform.Entities.Uom", b => { b.Property("Id") @@ -2515,8 +2513,7 @@ namespace Kurs.Platform.Migrations .HasColumnType("nvarchar(max)"); b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); + .HasColumnType("uniqueidentifier"); b.Property("TopicCount") .HasColumnType("int"); @@ -2583,8 +2580,7 @@ namespace Kurs.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); + .HasColumnType("uniqueidentifier"); b.Property("TopicId") .HasColumnType("uniqueidentifier"); @@ -2674,8 +2670,7 @@ namespace Kurs.Platform.Migrations .HasColumnType("int"); b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); + .HasColumnType("uniqueidentifier"); b.Property("Title") .IsRequired() @@ -4644,6 +4639,10 @@ namespace Kurs.Platform.Migrations .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); + b.Property("Country") + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); + b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); @@ -4797,6 +4796,17 @@ namespace Kurs.Platform.Migrations b.Navigation("Category"); }); + modelBuilder.Entity("Kurs.Platform.Entities.City", b => + { + b.HasOne("Kurs.Platform.Entities.Country", "Country") + .WithMany("Cities") + .HasForeignKey("CountryCode") + .HasPrincipalKey("Code") + .OnDelete(DeleteBehavior.Cascade); + + b.Navigation("Country"); + }); + modelBuilder.Entity("Kurs.Platform.Entities.Country", b => { b.HasOne("Kurs.Platform.Entities.CountryGroup", null) @@ -4826,17 +4836,6 @@ namespace Kurs.Platform.Migrations .IsRequired(); }); - modelBuilder.Entity("Kurs.Platform.Entities.State", b => - { - b.HasOne("Kurs.Platform.Entities.Country", "Country") - .WithMany("States") - .HasForeignKey("CountryCode") - .HasPrincipalKey("Code") - .OnDelete(DeleteBehavior.Cascade); - - b.Navigation("Country"); - }); - modelBuilder.Entity("Kurs.Platform.Entities.Uom", b => { b.HasOne("Kurs.Platform.Entities.UomCategory", "UomCategory") @@ -5046,7 +5045,7 @@ namespace Kurs.Platform.Migrations modelBuilder.Entity("Kurs.Platform.Entities.Country", b => { - b.Navigation("States"); + b.Navigation("Cities"); }); modelBuilder.Entity("Kurs.Platform.Entities.UomCategory", b => diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250618100205_NewDefitinationTables.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250627070749_NewTables.cs similarity index 51% rename from api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250618100205_NewDefitinationTables.cs rename to api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250627070749_NewTables.cs index 815a7546..2a8f284d 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250618100205_NewDefitinationTables.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20250627070749_NewTables.cs @@ -6,11 +6,127 @@ using Microsoft.EntityFrameworkCore.Migrations; namespace Kurs.Platform.Migrations { /// - public partial class NewDefitinationTables : Migration + public partial class NewTables : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { + migrationBuilder.DropColumn( + name: "MultipleCultures", + table: "PLanguage"); + + migrationBuilder.AddColumn( + name: "IsBranch", + table: "PListForm", + type: "bit", + nullable: false, + defaultValue: false); + + migrationBuilder.AddColumn( + name: "IsBranch", + table: "PChart", + type: "bit", + nullable: false, + defaultValue: false); + + migrationBuilder.AddColumn( + name: "Address", + table: "AbpTenants", + type: "nvarchar(256)", + maxLength: 256, + nullable: true); + + migrationBuilder.AddColumn( + name: "Address2", + table: "AbpTenants", + type: "nvarchar(256)", + maxLength: 256, + nullable: true); + + migrationBuilder.AddColumn( + name: "City", + table: "AbpTenants", + type: "nvarchar(128)", + maxLength: 128, + nullable: true); + + migrationBuilder.AddColumn( + name: "Country", + table: "AbpTenants", + type: "nvarchar(128)", + maxLength: 128, + nullable: true); + + migrationBuilder.AddColumn( + name: "District", + table: "AbpTenants", + type: "nvarchar(128)", + maxLength: 128, + nullable: true); + + migrationBuilder.AddColumn( + name: "Email", + table: "AbpTenants", + type: "nvarchar(256)", + maxLength: 256, + nullable: true); + + migrationBuilder.AddColumn( + name: "Fax", + table: "AbpTenants", + type: "bigint", + nullable: false, + defaultValue: 0L); + + migrationBuilder.AddColumn( + name: "InstitutionName", + table: "AbpTenants", + type: "nvarchar(64)", + maxLength: 64, + nullable: true); + + migrationBuilder.AddColumn( + name: "Mobile", + table: "AbpTenants", + type: "bigint", + nullable: false, + defaultValue: 0L); + + migrationBuilder.AddColumn( + name: "Phone", + table: "AbpTenants", + type: "bigint", + nullable: false, + defaultValue: 0L); + + migrationBuilder.AddColumn( + name: "PostalCode", + table: "AbpTenants", + type: "nvarchar(10)", + maxLength: 10, + nullable: true); + + migrationBuilder.AddColumn( + name: "TaxOffice", + table: "AbpTenants", + type: "nvarchar(64)", + maxLength: 64, + nullable: true); + + migrationBuilder.AddColumn( + name: "VknTckn", + table: "AbpTenants", + type: "bigint", + nullable: false, + defaultValue: 0L); + + migrationBuilder.AddColumn( + name: "Website", + table: "AbpTenants", + type: "nvarchar(256)", + maxLength: 256, + nullable: true); + migrationBuilder.CreateTable( name: "Banks", columns: table => new @@ -39,6 +155,81 @@ namespace Kurs.Platform.Migrations table.PrimaryKey("PK_Banks", x => x.Id); }); + migrationBuilder.CreateTable( + name: "PBlogCategories", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Slug = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Icon = table.Column(type: "nvarchar(max)", nullable: true), + DisplayOrder = table.Column(type: "int", nullable: false), + IsActive = table.Column(type: "bit", nullable: false), + PostCount = table.Column(type: "int", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_PBlogCategories", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "PBranch", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(max)", nullable: true), + Name = table.Column(type: "nvarchar(max)", nullable: true), + VknTckn = table.Column(type: "bigint", nullable: false), + TaxOffice = table.Column(type: "nvarchar(max)", nullable: true), + Address = table.Column(type: "nvarchar(max)", nullable: true), + Address2 = table.Column(type: "nvarchar(max)", nullable: true), + District = table.Column(type: "nvarchar(max)", nullable: true), + Country = table.Column(type: "nvarchar(max)", nullable: true), + City = table.Column(type: "nvarchar(max)", nullable: true), + PostalCode = table.Column(type: "nvarchar(max)", nullable: true), + Phone = table.Column(type: "bigint", nullable: true), + Mobile = table.Column(type: "bigint", nullable: false), + Fax = table.Column(type: "bigint", nullable: true), + Email = table.Column(type: "nvarchar(max)", nullable: true), + Website = table.Column(type: "nvarchar(max)", nullable: true), + IsActive = table.Column(type: "bit", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_PBranch", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "PBranchUsers", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + BranchId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Id = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_PBranchUsers", x => new { x.UserId, x.BranchId }); + }); + migrationBuilder.CreateTable( name: "PContactTag", columns: table => new @@ -123,6 +314,38 @@ namespace Kurs.Platform.Migrations table.PrimaryKey("PK_PCurrency", x => x.Id); }); + migrationBuilder.CreateTable( + name: "PForumCategories", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Slug = table.Column(type: "nvarchar(max)", nullable: true), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Icon = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DisplayOrder = table.Column(type: "int", nullable: false), + IsActive = table.Column(type: "bit", nullable: false), + IsLocked = table.Column(type: "bit", nullable: false), + TopicCount = table.Column(type: "int", nullable: false), + PostCount = table.Column(type: "int", nullable: false), + LastPostId = table.Column(type: "uniqueidentifier", nullable: true), + LastPostDate = table.Column(type: "datetime2", nullable: true), + LastPostUserId = table.Column(type: "uniqueidentifier", nullable: true), + LastPostUserName = table.Column(type: "nvarchar(max)", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_PForumCategories", x => x.Id); + }); + migrationBuilder.CreateTable( name: "PSector", columns: table => new @@ -182,6 +405,47 @@ namespace Kurs.Platform.Migrations table.UniqueConstraint("AK_PUomCategory_Name", x => x.Name); }); + migrationBuilder.CreateTable( + name: "PBlogPosts", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Slug = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + ContentTr = table.Column(type: "nvarchar(max)", nullable: false), + ContentEn = table.Column(type: "nvarchar(max)", nullable: false), + Summary = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false), + CoverImage = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + ReadTime = table.Column(type: "nvarchar(max)", nullable: true), + CategoryId = table.Column(type: "uniqueidentifier", nullable: false), + AuthorId = table.Column(type: "uniqueidentifier", nullable: false), + ViewCount = table.Column(type: "int", nullable: false), + LikeCount = table.Column(type: "int", nullable: false), + CommentCount = table.Column(type: "int", nullable: false), + IsPublished = table.Column(type: "bit", nullable: false), + PublishedAt = table.Column(type: "datetime2", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: false), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_PBlogPosts", x => x.Id); + table.ForeignKey( + name: "FK_PBlogPosts_PBlogCategories_CategoryId", + column: x => x.CategoryId, + principalTable: "PBlogCategories", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + migrationBuilder.CreateTable( name: "PCountry", columns: table => new @@ -191,7 +455,7 @@ namespace Kurs.Platform.Migrations Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), GroupName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), CurrencyCode = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), - PhoneCode = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + PhoneCode = table.Column(type: "int", maxLength: 16, nullable: false), TaxLabel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), ZipRequired = table.Column(type: "bit", nullable: false), StateRequired = table.Column(type: "bit", nullable: false), @@ -250,6 +514,46 @@ namespace Kurs.Platform.Migrations principalColumn: "Id"); }); + migrationBuilder.CreateTable( + name: "PForumTopics", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Content = table.Column(type: "nvarchar(max)", nullable: false), + CategoryId = table.Column(type: "uniqueidentifier", nullable: false), + AuthorId = table.Column(type: "uniqueidentifier", nullable: false), + AuthorName = table.Column(type: "nvarchar(max)", nullable: true), + ViewCount = table.Column(type: "int", nullable: false), + ReplyCount = table.Column(type: "int", nullable: false), + LikeCount = table.Column(type: "int", nullable: false), + IsPinned = table.Column(type: "bit", nullable: false), + IsLocked = table.Column(type: "bit", nullable: false), + IsSolved = table.Column(type: "bit", nullable: false), + LastPostId = table.Column(type: "uniqueidentifier", nullable: true), + LastPostDate = table.Column(type: "datetime2", nullable: true), + LastPostUserId = table.Column(type: "uniqueidentifier", nullable: true), + LastPostUserName = table.Column(type: "nvarchar(max)", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_PForumTopics", x => x.Id); + table.ForeignKey( + name: "FK_PForumTopics_PForumCategories_CategoryId", + column: x => x.CategoryId, + principalTable: "PForumCategories", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + migrationBuilder.CreateTable( name: "PSkill", columns: table => new @@ -335,7 +639,7 @@ namespace Kurs.Platform.Migrations }); migrationBuilder.CreateTable( - name: "PState", + name: "PCity", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -352,15 +656,53 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_PState", x => x.Id); + table.PrimaryKey("PK_PCity", x => x.Id); table.ForeignKey( - name: "FK_PState_PCountry_CountryCode", + name: "FK_PCity_PCountry_CountryCode", column: x => x.CountryCode, principalTable: "PCountry", principalColumn: "Code", onDelete: ReferentialAction.Cascade); }); + migrationBuilder.CreateTable( + name: "PForumPosts", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TopicId = table.Column(type: "uniqueidentifier", nullable: false), + Content = table.Column(type: "nvarchar(max)", nullable: false), + AuthorId = table.Column(type: "uniqueidentifier", nullable: false), + AuthorName = table.Column(type: "nvarchar(max)", nullable: true), + LikeCount = table.Column(type: "int", nullable: false), + IsAcceptedAnswer = table.Column(type: "bit", nullable: false), + ParentPostId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_PForumPosts", x => x.Id); + table.ForeignKey( + name: "FK_PForumPosts_PForumPosts_ParentPostId", + column: x => x.ParentPostId, + principalTable: "PForumPosts", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + table.ForeignKey( + name: "FK_PForumPosts_PForumTopics_TopicId", + column: x => x.TopicId, + principalTable: "PForumTopics", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + migrationBuilder.CreateIndex( name: "IX_BankAccounts_BankId", table: "BankAccounts", @@ -371,6 +713,38 @@ namespace Kurs.Platform.Migrations table: "BankAccounts", column: "CurrencyId"); + migrationBuilder.CreateIndex( + name: "IX_PBlogCategories_Slug", + table: "PBlogCategories", + column: "Slug"); + + migrationBuilder.CreateIndex( + name: "IX_PBlogPosts_CategoryId", + table: "PBlogPosts", + column: "CategoryId"); + + migrationBuilder.CreateIndex( + name: "IX_PBlogPosts_IsPublished", + table: "PBlogPosts", + column: "IsPublished"); + + migrationBuilder.CreateIndex( + name: "IX_PBlogPosts_PublishedAt", + table: "PBlogPosts", + column: "PublishedAt"); + + migrationBuilder.CreateIndex( + name: "IX_PBlogPosts_Slug", + table: "PBlogPosts", + column: "Slug"); + + migrationBuilder.CreateIndex( + name: "IX_PCity_CountryCode_Code", + table: "PCity", + columns: new[] { "CountryCode", "Code" }, + unique: true, + filter: "[CountryCode] IS NOT NULL AND [Code] IS NOT NULL"); + migrationBuilder.CreateIndex( name: "IX_PCountry_Code", table: "PCountry", @@ -388,6 +762,36 @@ namespace Kurs.Platform.Migrations column: "Name", unique: true); + migrationBuilder.CreateIndex( + name: "IX_PForumCategories_DisplayOrder", + table: "PForumCategories", + column: "DisplayOrder"); + + migrationBuilder.CreateIndex( + name: "IX_PForumPosts_ParentPostId", + table: "PForumPosts", + column: "ParentPostId"); + + migrationBuilder.CreateIndex( + name: "IX_PForumPosts_TopicId", + table: "PForumPosts", + column: "TopicId"); + + migrationBuilder.CreateIndex( + name: "IX_PForumTopics_CategoryId", + table: "PForumTopics", + column: "CategoryId"); + + migrationBuilder.CreateIndex( + name: "IX_PForumTopics_IsPinned", + table: "PForumTopics", + column: "IsPinned"); + + migrationBuilder.CreateIndex( + name: "IX_PForumTopics_LastPostDate", + table: "PForumTopics", + column: "LastPostDate"); + migrationBuilder.CreateIndex( name: "IX_PSkill_SkillTypeId", table: "PSkill", @@ -404,13 +808,6 @@ namespace Kurs.Platform.Migrations column: "Name", unique: true); - migrationBuilder.CreateIndex( - name: "IX_PState_CountryCode_Code", - table: "PState", - columns: new[] { "CountryCode", "Code" }, - unique: true, - filter: "[CountryCode] IS NOT NULL AND [Code] IS NOT NULL"); - migrationBuilder.CreateIndex( name: "IX_PUom_CategoryName", table: "PUom", @@ -429,12 +826,27 @@ namespace Kurs.Platform.Migrations migrationBuilder.DropTable( name: "BankAccounts"); + migrationBuilder.DropTable( + name: "PBlogPosts"); + + migrationBuilder.DropTable( + name: "PBranch"); + + migrationBuilder.DropTable( + name: "PBranchUsers"); + + migrationBuilder.DropTable( + name: "PCity"); + migrationBuilder.DropTable( name: "PContactTag"); migrationBuilder.DropTable( name: "PContactTitle"); + migrationBuilder.DropTable( + name: "PForumPosts"); + migrationBuilder.DropTable( name: "PSector"); @@ -444,9 +856,6 @@ namespace Kurs.Platform.Migrations migrationBuilder.DropTable( name: "PSkillLevel"); - migrationBuilder.DropTable( - name: "PState"); - migrationBuilder.DropTable( name: "PUom"); @@ -457,16 +866,95 @@ namespace Kurs.Platform.Migrations name: "PCurrency"); migrationBuilder.DropTable( - name: "PSkillType"); + name: "PBlogCategories"); migrationBuilder.DropTable( name: "PCountry"); + migrationBuilder.DropTable( + name: "PForumTopics"); + + migrationBuilder.DropTable( + name: "PSkillType"); + migrationBuilder.DropTable( name: "PUomCategory"); migrationBuilder.DropTable( name: "PCountryGroup"); + + migrationBuilder.DropTable( + name: "PForumCategories"); + + migrationBuilder.DropColumn( + name: "IsBranch", + table: "PListForm"); + + migrationBuilder.DropColumn( + name: "IsBranch", + table: "PChart"); + + migrationBuilder.DropColumn( + name: "Address", + table: "AbpTenants"); + + migrationBuilder.DropColumn( + name: "Address2", + table: "AbpTenants"); + + migrationBuilder.DropColumn( + name: "City", + table: "AbpTenants"); + + migrationBuilder.DropColumn( + name: "Country", + table: "AbpTenants"); + + migrationBuilder.DropColumn( + name: "District", + table: "AbpTenants"); + + migrationBuilder.DropColumn( + name: "Email", + table: "AbpTenants"); + + migrationBuilder.DropColumn( + name: "Fax", + table: "AbpTenants"); + + migrationBuilder.DropColumn( + name: "InstitutionName", + table: "AbpTenants"); + + migrationBuilder.DropColumn( + name: "Mobile", + table: "AbpTenants"); + + migrationBuilder.DropColumn( + name: "Phone", + table: "AbpTenants"); + + migrationBuilder.DropColumn( + name: "PostalCode", + table: "AbpTenants"); + + migrationBuilder.DropColumn( + name: "TaxOffice", + table: "AbpTenants"); + + migrationBuilder.DropColumn( + name: "VknTckn", + table: "AbpTenants"); + + migrationBuilder.DropColumn( + name: "Website", + table: "AbpTenants"); + + migrationBuilder.AddColumn( + name: "MultipleCultures", + table: "PLanguage", + type: "nvarchar(max)", + nullable: true); } } } diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs index be026391..e5f70e23 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs @@ -171,9 +171,6 @@ namespace Kurs.Platform.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); - b.Property("MultipleCultures") - .HasColumnType("nvarchar(max)"); - b.Property("TwoLetterISOLanguageName") .HasColumnType("nvarchar(max)"); @@ -943,8 +940,7 @@ namespace Kurs.Platform.Migrations .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -1044,8 +1040,7 @@ namespace Kurs.Platform.Migrations .HasColumnType("nvarchar(512)"); b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); + .HasColumnType("uniqueidentifier"); b.Property("Title") .IsRequired() @@ -1085,6 +1080,9 @@ namespace Kurs.Platform.Migrations b.Property("Code") .HasColumnType("nvarchar(max)"); + b.Property("Country") + .HasColumnType("nvarchar(max)"); + b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); @@ -1314,6 +1312,63 @@ namespace Kurs.Platform.Migrations b.ToTable("PChart", (string)null); }); + modelBuilder.Entity("Kurs.Platform.Entities.City", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("Code") + .HasMaxLength(16) + .HasColumnType("nvarchar(16)"); + + b.Property("CountryCode") + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); + + b.HasKey("Id"); + + b.HasIndex("CountryCode", "Code") + .IsUnique() + .HasFilter("[CountryCode] IS NOT NULL AND [Code] IS NOT NULL"); + + b.ToTable("PCity", (string)null); + }); + modelBuilder.Entity("Kurs.Platform.Entities.Country", b => { b.Property("Id") @@ -1367,9 +1422,9 @@ namespace Kurs.Platform.Migrations .HasMaxLength(128) .HasColumnType("nvarchar(128)"); - b.Property("PhoneCode") + b.Property("PhoneCode") .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); + .HasColumnType("int"); b.Property("StateRequired") .HasColumnType("bit"); @@ -2263,63 +2318,6 @@ namespace Kurs.Platform.Migrations b.ToTable("PSector", (string)null); }); - modelBuilder.Entity("Kurs.Platform.Entities.State", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("CountryCode") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("CountryCode", "Code") - .IsUnique() - .HasFilter("[CountryCode] IS NOT NULL AND [Code] IS NOT NULL"); - - b.ToTable("PState", (string)null); - }); - modelBuilder.Entity("Kurs.Platform.Entities.Uom", b => { b.Property("Id") @@ -2512,8 +2510,7 @@ namespace Kurs.Platform.Migrations .HasColumnType("nvarchar(max)"); b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); + .HasColumnType("uniqueidentifier"); b.Property("TopicCount") .HasColumnType("int"); @@ -2580,8 +2577,7 @@ namespace Kurs.Platform.Migrations .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); + .HasColumnType("uniqueidentifier"); b.Property("TopicId") .HasColumnType("uniqueidentifier"); @@ -2671,8 +2667,7 @@ namespace Kurs.Platform.Migrations .HasColumnType("int"); b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); + .HasColumnType("uniqueidentifier"); b.Property("Title") .IsRequired() @@ -4641,6 +4636,10 @@ namespace Kurs.Platform.Migrations .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); + b.Property("Country") + .HasMaxLength(128) + .HasColumnType("nvarchar(128)"); + b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); @@ -4794,6 +4793,17 @@ namespace Kurs.Platform.Migrations b.Navigation("Category"); }); + modelBuilder.Entity("Kurs.Platform.Entities.City", b => + { + b.HasOne("Kurs.Platform.Entities.Country", "Country") + .WithMany("Cities") + .HasForeignKey("CountryCode") + .HasPrincipalKey("Code") + .OnDelete(DeleteBehavior.Cascade); + + b.Navigation("Country"); + }); + modelBuilder.Entity("Kurs.Platform.Entities.Country", b => { b.HasOne("Kurs.Platform.Entities.CountryGroup", null) @@ -4823,17 +4833,6 @@ namespace Kurs.Platform.Migrations .IsRequired(); }); - modelBuilder.Entity("Kurs.Platform.Entities.State", b => - { - b.HasOne("Kurs.Platform.Entities.Country", "Country") - .WithMany("States") - .HasForeignKey("CountryCode") - .HasPrincipalKey("Code") - .OnDelete(DeleteBehavior.Cascade); - - b.Navigation("Country"); - }); - modelBuilder.Entity("Kurs.Platform.Entities.Uom", b => { b.HasOne("Kurs.Platform.Entities.UomCategory", "UomCategory") @@ -5043,7 +5042,7 @@ namespace Kurs.Platform.Migrations modelBuilder.Entity("Kurs.Platform.Entities.Country", b => { - b.Navigation("States"); + b.Navigation("Cities"); }); modelBuilder.Entity("Kurs.Platform.Entities.UomCategory", b => diff --git a/ui/src/views/form/FormDevExpress.tsx b/ui/src/views/form/FormDevExpress.tsx index 1879363c..77ba8370 100644 --- a/ui/src/views/form/FormDevExpress.tsx +++ b/ui/src/views/form/FormDevExpress.tsx @@ -22,7 +22,7 @@ const FormDevExpress = (props: { const { mode, refForm, formData, formItems, setFormData } = props return ( -
+