From 7c4bfd4b41abbe1659b27a1e2f1f52a300693c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96ZT=C3=9CRK?= <76204082+iamsedatozturk@users.noreply.github.com> Date: Wed, 5 Nov 2025 12:02:16 +0300 Subject: [PATCH] =?UTF-8?q?Developer=20Kit=20g=C3=BCncellemeleri?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{ApiEndpointDto.cs => CrudEndpointDto.cs} | 4 +- ...ApiMigrationDto.cs => CrudMigrationDto.cs} | 4 +- .../DeveloperKit/IApiEndpointAppService.cs | 18 - .../DeveloperKit/IApiMigrationAppService.cs | 18 - .../DeveloperKit/ICrudEndpointAppService.cs | 18 + .../DeveloperKit/ICrudMigrationAppService.cs | 18 + ...ppService.cs => CrudEndpointAppService.cs} | 10 +- ...e.cs => CrudEndpointGenerateAppService.cs} | 55 +- ...pService.cs => CrudMigrationAppService.cs} | 28 +- .../DeveloperKit/CustomEntityAppService.cs | 10 +- .../DeveloperKitAutoMapperProfile.cs | 8 +- .../DeveloperKit/DynamicServiceCompiler.cs | 2 - .../Seeds/LanguagesData.json | 48 +- .../Seeds/MenusData.json | 30 +- .../Seeds/PermissionsData.json | 4 +- .../Enums/TableNameEnum.cs | 2 +- .../TableNameResolver.cs | 2 +- .../DeveloperKit/IApiMigrationRepository.cs | 2 +- .../{ApiEndpoint.cs => CrudEndpoint.cs} | 4 +- .../{ApiMigration.cs => CrudMigration.cs} | 2 +- .../PlatformApiMigrationRepository.cs | 2 +- .../EntityFrameworkCore/PlatformDbContext.cs | 10 +- .../20251104135444_Initial.Designer.cs | 13747 ---------------- .../20251104205840_DynamicService.cs | 53 - ....cs => 20251105082644_Initial.Designer.cs} | 322 +- ...4_Initial.cs => 20251105082644_Initial.cs} | 114 +- .../PlatformDbContextModelSnapshot.cs | 318 +- .../Tenants/Seeds/TenantData.json | 2 +- .../developerKit/ComponentManager.tsx | 2 +- ...intManager.tsx => CrudEndpointManager.tsx} | 10 +- ui/src/components/developerKit/Dashboard.tsx | 2 +- .../components/developerKit/EntityEditor.tsx | 124 +- .../components/developerKit/EntityManager.tsx | 2 +- .../developerKit/MigrationManager.tsx | 2 +- ui/src/components/layouts/DeveloperLayout.tsx | 2 +- ui/src/contexts/EntityContext.tsx | 10 +- ui/src/proxy/developerKit/models.ts | 4 +- ui/src/services/developerKit.service.ts | 72 +- ui/src/utils/hooks/useDeveloperKit.ts | 5 +- ...{EndpointPage.tsx => CrudEndpointPage.tsx} | 8 +- 40 files changed, 659 insertions(+), 14439 deletions(-) rename api/src/Kurs.Platform.Application.Contracts/DeveloperKit/{ApiEndpointDto.cs => CrudEndpointDto.cs} (90%) rename api/src/Kurs.Platform.Application.Contracts/DeveloperKit/{ApiMigrationDto.cs => CrudMigrationDto.cs} (89%) delete mode 100644 api/src/Kurs.Platform.Application.Contracts/DeveloperKit/IApiEndpointAppService.cs delete mode 100644 api/src/Kurs.Platform.Application.Contracts/DeveloperKit/IApiMigrationAppService.cs create mode 100644 api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ICrudEndpointAppService.cs create mode 100644 api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ICrudMigrationAppService.cs rename api/src/Kurs.Platform.Application/DeveloperKit/{DynamicAppService.cs => CrudEndpointAppService.cs} (90%) rename api/src/Kurs.Platform.Application/DeveloperKit/{ApiEndpointAppService.cs => CrudEndpointGenerateAppService.cs} (79%) rename api/src/Kurs.Platform.Application/DeveloperKit/{ApiMigrationAppService.cs => CrudMigrationAppService.cs} (87%) rename api/src/Kurs.Platform.Domain/Entities/Tenant/Administration/{ApiEndpoint.cs => CrudEndpoint.cs} (88%) rename api/src/Kurs.Platform.Domain/Entities/Tenant/Administration/{ApiMigration.cs => CrudMigration.cs} (90%) delete mode 100644 api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251104135444_Initial.Designer.cs delete mode 100644 api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251104205840_DynamicService.cs rename api/src/Kurs.Platform.EntityFrameworkCore/Migrations/{20251104205840_DynamicService.Designer.cs => 20251105082644_Initial.Designer.cs} (99%) rename api/src/Kurs.Platform.EntityFrameworkCore/Migrations/{20251104135444_Initial.cs => 20251105082644_Initial.cs} (99%) rename ui/src/components/developerKit/{EndpointManager.tsx => CrudEndpointManager.tsx} (99%) rename ui/src/views/developerKit/{EndpointPage.tsx => CrudEndpointPage.tsx} (58%) diff --git a/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ApiEndpointDto.cs b/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/CrudEndpointDto.cs similarity index 90% rename from api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ApiEndpointDto.cs rename to api/src/Kurs.Platform.Application.Contracts/DeveloperKit/CrudEndpointDto.cs index e3581803..36740565 100644 --- a/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ApiEndpointDto.cs +++ b/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/CrudEndpointDto.cs @@ -3,7 +3,7 @@ using Volo.Abp.Application.Dtos; namespace Kurs.Platform.DeveloperKit; -public class ApiEndpointDto : FullAuditedEntityDto +public class CrudEndpointDto : FullAuditedEntityDto { public string EntityName { get; set; } = string.Empty; public string Method { get; set; } = string.Empty; @@ -17,7 +17,7 @@ public class ApiEndpointDto : FullAuditedEntityDto public string? EntityDisplayName { get; set; } } -public class CreateUpdateApiEndpointDto +public class CreateUpdateCrudEndpointDto { public string EntityName { get; set; } = string.Empty; public string Method { get; set; } = string.Empty; diff --git a/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ApiMigrationDto.cs b/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/CrudMigrationDto.cs similarity index 89% rename from api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ApiMigrationDto.cs rename to api/src/Kurs.Platform.Application.Contracts/DeveloperKit/CrudMigrationDto.cs index b017f330..e7b96c72 100644 --- a/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ApiMigrationDto.cs +++ b/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/CrudMigrationDto.cs @@ -4,7 +4,7 @@ using Volo.Abp.Application.Dtos; namespace Kurs.Platform.DeveloperKit; -public class ApiMigrationDto : AuditedEntityDto +public class CrudMigrationDto : AuditedEntityDto { public Guid EntityId { get; set; } public string EntityName { get; set; } = string.Empty; @@ -15,7 +15,7 @@ public class ApiMigrationDto : AuditedEntityDto public string? ErrorMessage { get; set; } } -public class CreateUpdateApiMigrationDto +public class CreateUpdateCrudMigrationDto { public Guid EntityId { get; set; } public string EntityName { get; set; } = string.Empty; diff --git a/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/IApiEndpointAppService.cs b/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/IApiEndpointAppService.cs deleted file mode 100644 index 21c2c9e6..00000000 --- a/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/IApiEndpointAppService.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Volo.Abp.Application.Dtos; -using Volo.Abp.Application.Services; - -namespace Kurs.Platform.DeveloperKit; - -public interface IApiEndpointAppService : ICrudAppService< - ApiEndpointDto, - Guid, - PagedAndSortedResultRequestDto, - CreateUpdateApiEndpointDto> -{ - Task> GetActiveEndpointsAsync(); - Task> GetEndpointsByEntityAsync(Guid entityId); - Task> GenerateCrudEndpointsAsync(Guid entityId); -} diff --git a/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/IApiMigrationAppService.cs b/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/IApiMigrationAppService.cs deleted file mode 100644 index 298b4f28..00000000 --- a/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/IApiMigrationAppService.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Volo.Abp.Application.Dtos; -using Volo.Abp.Application.Services; - -namespace Kurs.Platform.DeveloperKit; - -public interface IApiMigrationAppService : ICrudAppService< - ApiMigrationDto, - Guid, - PagedAndSortedResultRequestDto, - CreateUpdateApiMigrationDto> -{ - Task ApplyMigrationAsync(Guid id); - Task> GetPendingMigrationsAsync(); - Task GenerateMigrationAsync(Guid entityId); -} diff --git a/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ICrudEndpointAppService.cs b/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ICrudEndpointAppService.cs new file mode 100644 index 00000000..46300726 --- /dev/null +++ b/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ICrudEndpointAppService.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Application.Services; + +namespace Kurs.Platform.DeveloperKit; + +public interface ICrudEndpointAppService : ICrudAppService< + CrudEndpointDto, + Guid, + PagedAndSortedResultRequestDto, + CreateUpdateCrudEndpointDto> +{ + Task> GetActiveEndpointsAsync(); + Task> GetEndpointsByEntityAsync(Guid entityId); + Task> GenerateCrudEndpointsAsync(Guid entityId); +} diff --git a/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ICrudMigrationAppService.cs b/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ICrudMigrationAppService.cs new file mode 100644 index 00000000..e1598042 --- /dev/null +++ b/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ICrudMigrationAppService.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Application.Services; + +namespace Kurs.Platform.DeveloperKit; + +public interface ICrudMigrationAppService : ICrudAppService< + CrudMigrationDto, + Guid, + PagedAndSortedResultRequestDto, + CreateUpdateCrudMigrationDto> +{ + Task ApplyMigrationAsync(Guid id); + Task> GetPendingMigrationsAsync(); + Task GenerateMigrationAsync(Guid entityId); +} diff --git a/api/src/Kurs.Platform.Application/DeveloperKit/DynamicAppService.cs b/api/src/Kurs.Platform.Application/DeveloperKit/CrudEndpointAppService.cs similarity index 90% rename from api/src/Kurs.Platform.Application/DeveloperKit/DynamicAppService.cs rename to api/src/Kurs.Platform.Application/DeveloperKit/CrudEndpointAppService.cs index 63ded597..e50df2c4 100644 --- a/api/src/Kurs.Platform.Application/DeveloperKit/DynamicAppService.cs +++ b/api/src/Kurs.Platform.Application/DeveloperKit/CrudEndpointAppService.cs @@ -12,14 +12,14 @@ using Volo.Abp.Domain.Repositories; namespace Kurs.Platform.Application; [RemoteService] -[Route("api/app/dynamic")] -public class DynamicAppService : ApplicationService +[Route("api/app/crudendpoint")] +public class CrudEndpointAppService : ApplicationService { - private readonly IRepository _endpointRepository; + private readonly IRepository _endpointRepository; private readonly IDynamicEntityManager _dynamicManager; - public DynamicAppService( - IRepository endpointRepository, + public CrudEndpointAppService( + IRepository endpointRepository, IDynamicEntityManager dynamicManager) { _endpointRepository = endpointRepository; diff --git a/api/src/Kurs.Platform.Application/DeveloperKit/ApiEndpointAppService.cs b/api/src/Kurs.Platform.Application/DeveloperKit/CrudEndpointGenerateAppService.cs similarity index 79% rename from api/src/Kurs.Platform.Application/DeveloperKit/ApiEndpointAppService.cs rename to api/src/Kurs.Platform.Application/DeveloperKit/CrudEndpointGenerateAppService.cs index a09c2dfd..36e2f032 100644 --- a/api/src/Kurs.Platform.Application/DeveloperKit/ApiEndpointAppService.cs +++ b/api/src/Kurs.Platform.Application/DeveloperKit/CrudEndpointGenerateAppService.cs @@ -11,23 +11,22 @@ using Volo.Abp.Domain.Repositories; namespace Platform.Api.Application; -public class ApiEndpointAppService : CrudAppService< - ApiEndpoint, - ApiEndpointDto, +public class CrudEndpointGenerateAppService : CrudAppService< + CrudEndpoint, + CrudEndpointDto, Guid, PagedAndSortedResultRequestDto, - CreateUpdateApiEndpointDto>, IApiEndpointAppService + CreateUpdateCrudEndpointDto>, ICrudEndpointAppService { private readonly IRepository _entityRepository; - private readonly IRepository _migrationRepository; - private readonly IRepository _endpointRepository; + private readonly IRepository _migrationRepository; + private readonly IRepository _endpointRepository; - - public ApiEndpointAppService( - IRepository repository, + public CrudEndpointGenerateAppService( + IRepository repository, IRepository entityRepository, - IRepository migrationRepository, - IRepository endpointRepository) + IRepository migrationRepository, + IRepository endpointRepository) : base(repository) { _entityRepository = entityRepository; @@ -35,19 +34,19 @@ public class ApiEndpointAppService : CrudAppService< _endpointRepository = endpointRepository; } - public virtual async Task> GetActiveEndpointsAsync() + public virtual async Task> GetActiveEndpointsAsync() { var endpoints = await Repository.GetListAsync(x => x.IsActive); return await MapToGetListOutputDtosAsync(endpoints); } - public virtual async Task> GetEndpointsByEntityAsync(Guid entityId) + public virtual async Task> GetEndpointsByEntityAsync(Guid entityId) { var endpoints = await _endpointRepository.GetListAsync(x => x.EntityId == entityId); - return ObjectMapper.Map, List>(endpoints); + return ObjectMapper.Map, List>(endpoints); } - public virtual async Task> GenerateCrudEndpointsAsync(Guid entityId) + public virtual async Task> GenerateCrudEndpointsAsync(Guid entityId) { // Entity + Fields var entityQueryable = await _entityRepository.GetQueryableAsync(); @@ -72,60 +71,60 @@ public class ApiEndpointAppService : CrudAppService< } // CRUD endpointleri oluştur - var endpoints = new List(); + var endpoints = new List(); var entityName = entity.Name; var entityDisplayName = entity.DisplayName; - endpoints.Add(new ApiEndpoint + endpoints.Add(new CrudEndpoint { EntityId = entityId, EntityName = entityName, Method = "GET", - Path = $"/api/app/dynamic/{entityName.ToLower()}", + Path = $"/api/app/crudendpoint/{entityName.ToLower()}", OperationType = "GetList", IsActive = true, CsharpCode = GenerateGetAllCode(entityName, entityDisplayName) }); - endpoints.Add(new ApiEndpoint + endpoints.Add(new CrudEndpoint { EntityId = entityId, EntityName = entityName, Method = "GET", - Path = $"/api/app/dynamic/{entityName.ToLower()}/{{id}}", + Path = $"/api/app/crudendpoint/{entityName.ToLower()}/{{id}}", OperationType = "GetById", IsActive = true, CsharpCode = GenerateGetByIdCode(entityName, entityDisplayName) }); - endpoints.Add(new ApiEndpoint + endpoints.Add(new CrudEndpoint { EntityId = entityId, EntityName = entityName, Method = "POST", - Path = $"/api/app/dynamic/{entityName.ToLower()}", + Path = $"/api/app/crudendpoint/{entityName.ToLower()}", OperationType = "Create", IsActive = true, CsharpCode = GenerateCreateCode(entityName, entityDisplayName) }); - endpoints.Add(new ApiEndpoint + endpoints.Add(new CrudEndpoint { EntityId = entityId, EntityName = entityName, Method = "PUT", - Path = $"/api/app/dynamic/{entityName.ToLower()}/{{id}}", + Path = $"/api/app/crudendpoint/{entityName.ToLower()}/{{id}}", OperationType = "Update", IsActive = true, CsharpCode = GenerateUpdateCode(entityName, entityDisplayName) }); - endpoints.Add(new ApiEndpoint + endpoints.Add(new CrudEndpoint { EntityId = entityId, EntityName = entityName, Method = "DELETE", - Path = $"/api/app/dynamic/{entityName.ToLower()}/{{id}}", + Path = $"/api/app/crudendpoint/{entityName.ToLower()}/{{id}}", OperationType = "Delete", IsActive = true, CsharpCode = GenerateDeleteCode(entityName, entityDisplayName) @@ -144,9 +143,9 @@ public class ApiEndpointAppService : CrudAppService< entity.EndpointStatus = "applied"; await _entityRepository.UpdateAsync(entity, autoSave: true); - var result = ObjectMapper.Map, List>(endpoints); + var result = ObjectMapper.Map, List>(endpoints); - return new PagedResultDto + return new PagedResultDto { Items = result, TotalCount = result.Count diff --git a/api/src/Kurs.Platform.Application/DeveloperKit/ApiMigrationAppService.cs b/api/src/Kurs.Platform.Application/DeveloperKit/CrudMigrationAppService.cs similarity index 87% rename from api/src/Kurs.Platform.Application/DeveloperKit/ApiMigrationAppService.cs rename to api/src/Kurs.Platform.Application/DeveloperKit/CrudMigrationAppService.cs index aa3c0ec9..bb483d6a 100644 --- a/api/src/Kurs.Platform.Application/DeveloperKit/ApiMigrationAppService.cs +++ b/api/src/Kurs.Platform.Application/DeveloperKit/CrudMigrationAppService.cs @@ -14,20 +14,20 @@ using Kurs.Platform.Domain.DeveloperKit; namespace Platform.Api.Application; -public class ApiMigrationAppService : CrudAppService< - ApiMigration, - ApiMigrationDto, +public class CrudMigrationAppService : CrudAppService< + CrudMigration, + CrudMigrationDto, Guid, PagedAndSortedResultRequestDto, - CreateUpdateApiMigrationDto>, IApiMigrationAppService + CreateUpdateCrudMigrationDto>, ICrudMigrationAppService { - private readonly IRepository _migrationRepository; + private readonly IRepository _migrationRepository; private readonly IRepository _entityRepository; private readonly IRepository _fieldRepository; private readonly IApiMigrationRepository _customSqlExecutor; - public ApiMigrationAppService( - IRepository migrationRepository, + public CrudMigrationAppService( + IRepository migrationRepository, IRepository entityRepository, IRepository fieldRepository, IApiMigrationRepository customSqlExecutor @@ -39,7 +39,7 @@ public class ApiMigrationAppService : CrudAppService< _customSqlExecutor = customSqlExecutor; } - public virtual async Task ApplyMigrationAsync(Guid id) + public virtual async Task ApplyMigrationAsync(Guid id) { var migration = await _migrationRepository.GetAsync(id); @@ -57,7 +57,7 @@ public class ApiMigrationAppService : CrudAppService< entity.MigrationStatus = "applied"; await _entityRepository.UpdateAsync(entity, autoSave: true); - return ObjectMapper.Map(migration); + return ObjectMapper.Map(migration); } catch (Exception ex) { @@ -74,7 +74,7 @@ public class ApiMigrationAppService : CrudAppService< } - public virtual async Task> GetPendingMigrationsAsync() + public virtual async Task> GetPendingMigrationsAsync() { var queryable = await _migrationRepository.GetQueryableAsync(); var pending = await queryable @@ -82,11 +82,11 @@ public class ApiMigrationAppService : CrudAppService< .OrderBy(m => m.CreationTime) .ToListAsync(); - return ObjectMapper.Map, List>(pending); + return ObjectMapper.Map, List>(pending); } - public virtual async Task GenerateMigrationAsync(Guid entityId) + public virtual async Task GenerateMigrationAsync(Guid entityId) { var queryable = await _entityRepository.GetQueryableAsync(); var entity = await queryable @@ -100,7 +100,7 @@ public class ApiMigrationAppService : CrudAppService< var sqlScript = GenerateSqlScript(entity); - var migration = new ApiMigration + var migration = new CrudMigration { EntityId = entityId, EntityName = entity.Name, @@ -115,7 +115,7 @@ public class ApiMigrationAppService : CrudAppService< entity.MigrationStatus = "pending"; await _entityRepository.UpdateAsync(entity, autoSave: true); - return ObjectMapper.Map(migration); + return ObjectMapper.Map(migration); } private string GenerateSqlScript(CustomEntity entity) diff --git a/api/src/Kurs.Platform.Application/DeveloperKit/CustomEntityAppService.cs b/api/src/Kurs.Platform.Application/DeveloperKit/CustomEntityAppService.cs index 1149adb6..d4232b90 100644 --- a/api/src/Kurs.Platform.Application/DeveloperKit/CustomEntityAppService.cs +++ b/api/src/Kurs.Platform.Application/DeveloperKit/CustomEntityAppService.cs @@ -3,7 +3,6 @@ using Volo.Abp.Application.Dtos; using Volo.Abp.Application.Services; using Volo.Abp.Domain.Repositories; using Volo.Abp.Domain.Entities; -using System.Text; using Kurs.Platform.Entities; using Kurs.Platform.DeveloperKit; using System; @@ -22,14 +21,14 @@ public class CustomEntityAppService : CrudAppService< CreateUpdateCustomEntityDto>, ICustomEntityAppService { private readonly IRepository _repository; - private readonly IRepository _migrationRepository; - private readonly IRepository _endpointRepository; + private readonly IRepository _migrationRepository; + private readonly IRepository _endpointRepository; private readonly IRepository _fieldRepository; public CustomEntityAppService( IRepository repository, - IRepository migrationRepository, - IRepository endpointRepository, + IRepository migrationRepository, + IRepository endpointRepository, IRepository fieldRepository) : base(repository) { _repository = repository; @@ -226,7 +225,6 @@ public class CustomEntityAppService : CrudAppService< await _migrationRepository.DeleteManyAsync(relatedMigrations); } - // İlgili ApiEndpoint kayıtlarını sil var relatedEndpoints = await _endpointRepository.GetListAsync(e => e.EntityId == id); if (relatedEndpoints.Any()) { diff --git a/api/src/Kurs.Platform.Application/DeveloperKit/DeveloperKitAutoMapperProfile.cs b/api/src/Kurs.Platform.Application/DeveloperKit/DeveloperKitAutoMapperProfile.cs index 9ccb3667..d79c3540 100644 --- a/api/src/Kurs.Platform.Application/DeveloperKit/DeveloperKitAutoMapperProfile.cs +++ b/api/src/Kurs.Platform.Application/DeveloperKit/DeveloperKitAutoMapperProfile.cs @@ -20,13 +20,13 @@ public class DeveloperKitAutoMapperProfile : Profile CreateMap(); // GeneratedEndpoint mappings - CreateMap() + CreateMap() .ForMember(dest => dest.EntityDisplayName, opt => opt.MapFrom(src => src.Entity != null ? src.Entity.DisplayName : null)); - CreateMap(); + CreateMap(); // Migration mappings - CreateMap(); - CreateMap(); + CreateMap(); + CreateMap(); CreateMap() .ForMember(dest => dest.CompilationStatus, opt => opt.MapFrom(src => src.CompilationStatus.ToString())); diff --git a/api/src/Kurs.Platform.Application/DeveloperKit/DynamicServiceCompiler.cs b/api/src/Kurs.Platform.Application/DeveloperKit/DynamicServiceCompiler.cs index aa99d0cf..fbe791bc 100644 --- a/api/src/Kurs.Platform.Application/DeveloperKit/DynamicServiceCompiler.cs +++ b/api/src/Kurs.Platform.Application/DeveloperKit/DynamicServiceCompiler.cs @@ -32,7 +32,6 @@ public class DynamicServiceCompiler : ITransientDependency private static readonly string[] ForbiddenNamespaces = { "System.IO", "System.Diagnostics", - "System.Threading.Thread", "System.Environment", "System.Net.Sockets", "System.Reflection.Emit", @@ -46,7 +45,6 @@ public class DynamicServiceCompiler : ITransientDependency private static readonly string[] ForbiddenTypes = { "Process", "ProcessStartInfo", - "Thread", "ThreadStart", "File", "Directory", diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/LanguagesData.json b/api/src/Kurs.Platform.DbMigrator/Seeds/LanguagesData.json index 666661b0..b7ee69f1 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/LanguagesData.json +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/LanguagesData.json @@ -664,26 +664,26 @@ { "resourceName": "Platform", "key": "App.DeveloperKit.Entity", - "en": "Entity Management", - "tr": "Varlık Yönetimi" + "en": "Custom Entity", + "tr": "Özel Varlık" }, { "resourceName": "Platform", "key": "App.DeveloperKit.Migrations", - "en": "Database Migrations", - "tr": "Veritabanı Geçişleri" + "en": "Crud Migrations", + "tr": "Crud Geçişleri" }, { "resourceName": "Platform", - "key": "App.DeveloperKit.Endpoints", - "en": "CRUD Endpoints", - "tr": "CRUD Uç Noktaları" + "key": "App.DeveloperKit.CrudEndpoints", + "en": "Crud Endpoints", + "tr": "Crud Uç Noktaları" }, { "resourceName": "Platform", "key": "App.DeveloperKit.Components", - "en": "React Components", - "tr": "React Bileşenleri" + "en": "Custom Components", + "tr": "Özel Bileşenler" }, { "resourceName": "Platform", @@ -9535,12 +9535,6 @@ "tr": "Müşteri Yorumları", "en": "Testimonials" }, - { - "resourceName": "Platform", - "key": "App.DeveloperKit.Component.Title", - "en": "React Components", - "tr": "React Bileşenleri" - }, { "resourceName": "Platform", "key": "App.DeveloperKit.Component.Description", @@ -9673,12 +9667,6 @@ "en": "Create Component", "tr": "Bileşen Oluştur" }, - { - "resourceName": "Platform", - "key": "App.DeveloperKit.Endpoint.Title", - "en": "CRUD Endpoints", - "tr": "CRUD Uç Noktaları" - }, { "resourceName": "Platform", "key": "App.DeveloperKit.Endpoint.Description", @@ -9865,12 +9853,6 @@ "en": "Create some endpoints or entities to see documentation here", "tr": "Burada dokümantasyon görmek için bazı uç noktalar veya varlıklar oluşturun" }, - { - "resourceName": "Platform", - "key": "App.DeveloperKit.Migration.Title", - "en": "Database Migrations", - "tr": "Veritabanı Geçişleri" - }, { "resourceName": "Platform", "key": "App.DeveloperKit.Migration.Description", @@ -10057,12 +10039,6 @@ "en": "Applied", "tr": "Uygulandı" }, - { - "resourceName": "Platform", - "key": "App.DeveloperKit.Entity.Title", - "en": "Entity Management", - "tr": "Varlık Yönetimi" - }, { "resourceName": "Platform", "key": "App.DeveloperKit.Entity.Description", @@ -10255,12 +10231,6 @@ "en": "Generated APIs", "tr": "Oluşturulan API'ler" }, - { - "resourceName": "Platform", - "key": "App.DeveloperKit.Dashboard.Stats.Components", - "en": "React Components", - "tr": "React Bileşenleri" - }, { "resourceName": "Platform", "key": "App.DeveloperKit.Dashboard.Flow.Title", diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/MenusData.json b/api/src/Kurs.Platform.DbMigrator/Seeds/MenusData.json index 3ab54d06..120d0251 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/MenusData.json +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/MenusData.json @@ -344,10 +344,10 @@ { "key": "admin.developerkit.endpoints", "path": "/admin/developerkit/endpoints", - "componentPath": "@/views/developerKit/EndpointPage", + "componentPath": "@/views/developerKit/CrudEndpointPage", "routeType": "protected", "authority": [ - "App.DeveloperKit.Endpoints" + "App.DeveloperKit.CrudEndpoints" ] }, { @@ -1557,12 +1557,12 @@ }, { "ParentCode": "App.DeveloperKit", - "Code": "App.DeveloperKit.Endpoints", - "DisplayName": "App.DeveloperKit.Endpoints", + "Code": "App.DeveloperKit.CrudEndpoints", + "DisplayName": "App.DeveloperKit.CrudEndpoints", "Order": 4, "Url": "/admin/developerkit/endpoints", "Icon": "FcOrgUnit", - "RequiredPermissionName": "App.DeveloperKit.Endpoints", + "RequiredPermissionName": "App.DeveloperKit.CrudEndpoints", "IsDisabled": false }, { @@ -1575,16 +1575,6 @@ "RequiredPermissionName": "App.DeveloperKit.CustomEndpoints", "IsDisabled": false }, - { - "ParentCode": "App.DeveloperKit", - "Code": "App.DeveloperKit.DynamicServices", - "DisplayName": "App.DeveloperKit.DynamicServices", - "Order": 5, - "Url": "/admin/developerkit/dynamic-services", - "Icon": "FcCommandLine", - "RequiredPermissionName": "App.DeveloperKit.DynamicServices", - "IsDisabled": false - }, { "ParentCode": "App.DeveloperKit", "Code": "App.DeveloperKit.Components", @@ -1595,6 +1585,16 @@ "RequiredPermissionName": "App.DeveloperKit.Components", "IsDisabled": false }, + { + "ParentCode": "App.DeveloperKit", + "Code": "App.DeveloperKit.DynamicServices", + "DisplayName": "App.DeveloperKit.DynamicServices", + "Order": 7, + "Url": "/admin/developerkit/dynamic-services", + "Icon": "FcCommandLine", + "RequiredPermissionName": "App.DeveloperKit.DynamicServices", + "IsDisabled": false + }, { "ParentCode": "App.Administration", "Code": "App.Reports.Management", diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/PermissionsData.json b/api/src/Kurs.Platform.DbMigrator/Seeds/PermissionsData.json index 7ed60ed3..5254b108 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/PermissionsData.json +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/PermissionsData.json @@ -2238,9 +2238,9 @@ }, { "GroupName": "App.Administration", - "Name": "App.DeveloperKit.Endpoints", + "Name": "App.DeveloperKit.CrudEndpoints", "ParentName": "App.DeveloperKit", - "DisplayName": "App.DeveloperKit.Endpoints", + "DisplayName": "App.DeveloperKit.CrudEndpoints", "IsEnabled": true, "MultiTenancySide": 3, "MenuGroup": "Erp|Kurs" diff --git a/api/src/Kurs.Platform.Domain.Shared/Enums/TableNameEnum.cs b/api/src/Kurs.Platform.Domain.Shared/Enums/TableNameEnum.cs index 6fde5742..0caee860 100644 --- a/api/src/Kurs.Platform.Domain.Shared/Enums/TableNameEnum.cs +++ b/api/src/Kurs.Platform.Domain.Shared/Enums/TableNameEnum.cs @@ -32,7 +32,7 @@ public enum TableNameEnum CustomEntity, CustomEntityField, ApiMigration, - ApiEndpoint, + CrudEndpoint, CustomEndpoint, CustomComponent, ReportCategory, diff --git a/api/src/Kurs.Platform.Domain.Shared/TableNameResolver.cs b/api/src/Kurs.Platform.Domain.Shared/TableNameResolver.cs index 365444a6..99cac76e 100644 --- a/api/src/Kurs.Platform.Domain.Shared/TableNameResolver.cs +++ b/api/src/Kurs.Platform.Domain.Shared/TableNameResolver.cs @@ -54,7 +54,7 @@ public static class TableNameResolver { nameof(TableNameEnum.CustomEntity), (TablePrefix.TenantByName, MenuPrefix.Saas) }, { nameof(TableNameEnum.CustomEntityField), (TablePrefix.TenantByName, MenuPrefix.Saas) }, { nameof(TableNameEnum.ApiMigration), (TablePrefix.TenantByName, MenuPrefix.Saas) }, - { nameof(TableNameEnum.ApiEndpoint), (TablePrefix.TenantByName, MenuPrefix.Saas) }, + { nameof(TableNameEnum.CrudEndpoint), (TablePrefix.TenantByName, MenuPrefix.Saas) }, { nameof(TableNameEnum.CustomEndpoint), (TablePrefix.TenantByName, MenuPrefix.Saas) }, { nameof(TableNameEnum.CustomComponent), (TablePrefix.TenantByName, MenuPrefix.Saas) }, { nameof(TableNameEnum.ReportCategory), (TablePrefix.TenantByName, MenuPrefix.Saas) }, diff --git a/api/src/Kurs.Platform.Domain/DeveloperKit/IApiMigrationRepository.cs b/api/src/Kurs.Platform.Domain/DeveloperKit/IApiMigrationRepository.cs index 1370e173..97fe848e 100644 --- a/api/src/Kurs.Platform.Domain/DeveloperKit/IApiMigrationRepository.cs +++ b/api/src/Kurs.Platform.Domain/DeveloperKit/IApiMigrationRepository.cs @@ -5,7 +5,7 @@ using Volo.Abp.Domain.Repositories; namespace Kurs.Platform.Domain.DeveloperKit; -public interface IApiMigrationRepository : IRepository +public interface IApiMigrationRepository : IRepository { Task ExecuteSqlAsync(string sql); } diff --git a/api/src/Kurs.Platform.Domain/Entities/Tenant/Administration/ApiEndpoint.cs b/api/src/Kurs.Platform.Domain/Entities/Tenant/Administration/CrudEndpoint.cs similarity index 88% rename from api/src/Kurs.Platform.Domain/Entities/Tenant/Administration/ApiEndpoint.cs rename to api/src/Kurs.Platform.Domain/Entities/Tenant/Administration/CrudEndpoint.cs index 4ad0efd3..d3f43702 100644 --- a/api/src/Kurs.Platform.Domain/Entities/Tenant/Administration/ApiEndpoint.cs +++ b/api/src/Kurs.Platform.Domain/Entities/Tenant/Administration/CrudEndpoint.cs @@ -4,7 +4,7 @@ using Volo.Abp.MultiTenancy; namespace Kurs.Platform.Entities; -public class ApiEndpoint : FullAuditedEntity, IMultiTenant +public class CrudEndpoint : FullAuditedEntity, IMultiTenant { public virtual Guid? TenantId { get; protected set; } @@ -18,7 +18,7 @@ public class ApiEndpoint : FullAuditedEntity, IMultiTenant // Foreign key to CustomEntity public Guid EntityId { get; set; } public virtual CustomEntity Entity { get; set; } = null!; - public ApiEndpoint() + public CrudEndpoint() { Id = Guid.NewGuid(); } diff --git a/api/src/Kurs.Platform.Domain/Entities/Tenant/Administration/ApiMigration.cs b/api/src/Kurs.Platform.Domain/Entities/Tenant/Administration/CrudMigration.cs similarity index 90% rename from api/src/Kurs.Platform.Domain/Entities/Tenant/Administration/ApiMigration.cs rename to api/src/Kurs.Platform.Domain/Entities/Tenant/Administration/CrudMigration.cs index 2df79777..7357c0bc 100644 --- a/api/src/Kurs.Platform.Domain/Entities/Tenant/Administration/ApiMigration.cs +++ b/api/src/Kurs.Platform.Domain/Entities/Tenant/Administration/CrudMigration.cs @@ -4,7 +4,7 @@ using Volo.Abp.MultiTenancy; namespace Kurs.Platform.Entities; -public class ApiMigration : AuditedEntity, IMultiTenant +public class CrudMigration : AuditedEntity, IMultiTenant { public virtual Guid? TenantId { get; protected set; } diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/DeveloperKit/PlatformApiMigrationRepository.cs b/api/src/Kurs.Platform.EntityFrameworkCore/DeveloperKit/PlatformApiMigrationRepository.cs index 96ff2b2f..aa9fd408 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/DeveloperKit/PlatformApiMigrationRepository.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/DeveloperKit/PlatformApiMigrationRepository.cs @@ -8,7 +8,7 @@ using Volo.Abp.EntityFrameworkCore; namespace Kurs.Platform.Domain.DeveloperKit; -public class PlatformApiMigrationRepository : EfCoreRepository, IApiMigrationRepository +public class PlatformApiMigrationRepository : EfCoreRepository, IApiMigrationRepository { public PlatformApiMigrationRepository(IDbContextProvider dbContextProvider) : base(dbContextProvider) diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs b/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs index 2127639b..348359cc 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/EntityFrameworkCore/PlatformDbContext.cs @@ -60,8 +60,8 @@ public class PlatformDbContext : public DbSet ForumPosts { get; set; } public DbSet CustomEntities { get; set; } public DbSet EntityFields { get; set; } - public DbSet Migrations { get; set; } - public DbSet GeneratedEndpoints { get; set; } + public DbSet Migrations { get; set; } + public DbSet GeneratedEndpoints { get; set; } public DbSet CustomEndpoints { get; set; } public DbSet CustomComponents { get; set; } public DbSet DynamicServices { get; set; } @@ -652,7 +652,7 @@ public class PlatformDbContext : b.Property(x => x.DefaultValue).HasMaxLength(256); }); - builder.Entity(b => + builder.Entity(b => { b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ApiMigration)), Prefix.DbSchema); b.ConfigureByConvention(); @@ -670,9 +670,9 @@ public class PlatformDbContext : .OnDelete(DeleteBehavior.Restrict); }); - builder.Entity(b => + builder.Entity(b => { - b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.ApiEndpoint)), Prefix.DbSchema); + b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.CrudEndpoint)), Prefix.DbSchema); b.ConfigureByConvention(); b.HasKey(x => x.Id); diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251104135444_Initial.Designer.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251104135444_Initial.Designer.cs deleted file mode 100644 index 6cb60a31..00000000 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251104135444_Initial.Designer.cs +++ /dev/null @@ -1,13747 +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("20251104135444_Initial")] - partial class Initial - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "9.0.2") - .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("TwoLetterISOLanguageName") - .HasColumnType("nvarchar(max)"); - - b.Property("UiCultureName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.HasKey("Id"); - - b.ToTable("Plat_H_Language", (string)null); - }); - - modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", 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("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("Key") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ResourceName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ResourceName", "Key") - .IsUnique(); - - b.ToTable("Plat_H_LanguageKey", (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(4000) - .HasColumnType("nvarchar(4000)"); - - b.HasKey("Id"); - - b.HasIndex("CultureName"); - - b.HasIndex("ResourceName", "Key"); - - b.ToTable("Plat_H_LanguageText", (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") - .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("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("TableName") - .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.HasIndex("TableName"); - - b.ToTable("Plat_H_BackgroundWorker_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.HasIndex("AwsMessageId"); - - b.ToTable("Plat_H_BackgroundWorker_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("TableName", "Order") - .IsUnique() - .HasDatabaseName("IX_MailQueueTableFormat"); - - b.ToTable("Plat_H_BackgroundWorker_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() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - 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() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("NotificationChannel") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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.HasIndex("NotificationRuleId"); - - b.ToTable("Plat_H_Notification", (string)null); - }); - - modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Channel") - .IsRequired() - .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("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") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RecipientType") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Plat_H_NotificationRule", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.About", 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("DescriptionsJson") - .HasColumnType("text"); - - 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("SectionsJson") - .HasColumnType("text"); - - b.Property("StatsJson") - .HasColumnType("text"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_About", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Activity", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - 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("EntityId") - .HasColumnType("nvarchar(max)"); - - b.Property("EntityName") - .HasColumnType("nvarchar(max)"); - - b.Property("FilesJson") - .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("Subject") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Sas_T_Activity", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.AiBot", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BotName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.ToTable("Plat_H_AiBot", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Announcement", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Attachments") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Category") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - 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("Departments") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("EmployeeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Excerpt") - .IsRequired() - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2"); - - b.Property("ImageUrl") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsPinned") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PublishDate") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ViewCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.HasKey("Id"); - - b.HasIndex("EmployeeId"); - - b.ToTable("Net_T_Announcement", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ApiEndpoint", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CsharpCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EntityId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - 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("Method") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("OperationType") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.ToTable("Sas_T_ApiEndpoint", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ApiMigration", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AppliedAt") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntityId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ErrorMessage") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SqlScript") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.ToTable("Sas_T_ApiMigration", (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") - .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("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Options") - .HasColumnType("text"); - - b.Property("WorkerType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("Plat_H_BackgroundWorker", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Badge", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BackgroundColor") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Category") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Criteria") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Icon") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - 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("Name") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("Points") - .HasColumnType("int"); - - b.Property("Rarity") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Hr_T_Badge", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Bank", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address1") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Address2") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - 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(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PhoneNumber") - .HasMaxLength(64) - .HasColumnType("bigint"); - - b.Property("PostalCode") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Acc_T_Bank", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BankAccount", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccountNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AccountOwner") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("BankId") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("BankId"); - - b.ToTable("Acc_T_BankAccount", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Behavior", 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("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_Behavior", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.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") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - 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("Adm_T_BlogCategory", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BlogPost", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("CommentCount") - .HasColumnType("int"); - - 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("EmployeeId") - .HasColumnType("uniqueidentifier"); - - 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("EmployeeId"); - - b.HasIndex("IsPublished"); - - b.HasIndex("PublishedAt"); - - b.HasIndex("Slug"); - - b.ToTable("Adm_T_BlogPost", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Branch", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address1") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("Address2") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("City") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("FaxNumber") - .HasMaxLength(20) - .HasColumnType("bigint"); - - 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("MobileNumber") - .HasMaxLength(20) - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PhoneNumber") - .HasMaxLength(20) - .HasColumnType("bigint"); - - b.Property("PostalCode") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("Street") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TaxOffice") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("VknTckn") - .HasColumnType("bigint"); - - b.Property("Website") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.ToTable("Sas_T_Branch", (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.HasIndex("BranchId"); - - b.ToTable("Sas_T_BranchUsers", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Certificate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CertificateUrl") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - 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("EmployeeId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssueDate") - .HasColumnType("datetime2"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Score") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TrainingId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("EmployeeId"); - - b.HasIndex("TrainingId"); - - b.ToTable("Net_T_Certificate", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.City", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("Country") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("CountryId") - .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("PlateCode") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.HasKey("Id"); - - b.HasIndex("CountryId"); - - b.HasIndex("Country", "Code") - .IsUnique() - .HasFilter("[Country] IS NOT NULL"); - - b.ToTable("Sas_H_City", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Class", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassTypeId") - .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(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("BranchId"); - - b.HasIndex("ClassTypeId"); - - b.ToTable("Crd_B_Class", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ClassCancellationReason", 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(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Crd_T_ClassCancellationReason", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ClassType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("MaxStudentCount") - .HasColumnType("int"); - - b.Property("MinStudentCount") - .HasColumnType("int"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("RegistrationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("BranchId"); - - b.HasIndex("RegistrationTypeId"); - - b.ToTable("Crd_B_ClassType", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Classroom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActualEndTime") - .HasColumnType("datetime2"); - - b.Property("ActualStartTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .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(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Duration") - .HasColumnType("int"); - - 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("MaxParticipants") - .HasColumnType("int"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParticipantCount") - .HasColumnType("int"); - - b.Property("ScheduledEndTime") - .HasColumnType("datetime2"); - - b.Property("ScheduledStartTime") - .HasColumnType("datetime2"); - - b.Property("SettingsJson") - .HasColumnType("nvarchar(max)"); - - b.Property("Subject") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TeacherId") - .HasColumnType("uniqueidentifier"); - - b.Property("TeacherName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ScheduledStartTime"); - - b.HasIndex("TeacherId"); - - b.ToTable("Crd_T_Classroom", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ClassroomAttandance", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("JoinTime") - .HasColumnType("datetime2"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LeaveTime") - .HasColumnType("datetime2"); - - b.Property("SessionId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudentId") - .HasColumnType("uniqueidentifier"); - - b.Property("StudentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalDurationMinutes") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("JoinTime"); - - b.HasIndex("SessionId"); - - b.HasIndex("StudentId"); - - b.ToTable("Crd_T_ClassroomAttandance", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ClassroomChat", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("IsTeacher") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Message") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("MessageType") - .HasColumnType("nvarchar(max)"); - - b.Property("RecipientId") - .HasColumnType("uniqueidentifier"); - - b.Property("RecipientName") - .HasColumnType("nvarchar(max)"); - - b.Property("SenderId") - .HasColumnType("uniqueidentifier"); - - b.Property("SenderName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SessionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Timestamp") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("SenderId"); - - b.HasIndex("SessionId"); - - b.HasIndex("Timestamp"); - - b.ToTable("Crd_T_ClassroomChat", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ClassroomParticipant", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConnectionId") - .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("IsActive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("IsAudioMuted") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHandRaised") - .HasColumnType("bit"); - - b.Property("IsKicked") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("IsTeacher") - .HasColumnType("bit"); - - b.Property("IsVideoMuted") - .HasColumnType("bit"); - - b.Property("JoinTime") - .HasColumnType("datetime2"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SessionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("SessionId"); - - b.HasIndex("UserId"); - - b.HasIndex("SessionId", "UserId") - .IsUnique() - .HasFilter("[UserId] IS NOT NULL"); - - b.ToTable("Crd_T_ClassroomParticipant", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Contact", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("BankJson") - .HasColumnType("text"); - - 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") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - 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("Location") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("MapJson") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasMaxLength(50) - .HasColumnType("bigint"); - - b.Property("TaxNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WorkHoursJson") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_Contact", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.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("Sas_H_ContactTag", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.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("Sas_H_ContactTitle", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.CostCenter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActualAmount") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("BudgetedAmount") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CostCenterType") - .HasColumnType("nvarchar(max)"); - - 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("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("FiscalYear") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - 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("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentCostCenterId") - .HasColumnType("uniqueidentifier"); - - b.Property("ResponsibleEmployeeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("ParentCostCenterId"); - - b.HasIndex("ResponsibleEmployeeId"); - - b.ToTable("Hr_T_CostCenter", (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("CurrencyId") - .HasColumnType("uniqueidentifier"); - - 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") - .HasColumnType("int"); - - 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("Sas_H_Country", (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("Sas_H_CountryGroup", (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") - .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("LastUpdated") - .HasColumnType("datetime2"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Rate") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Symbol") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.HasKey("Id"); - - b.ToTable("Sas_H_Currency", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.CustomComponent", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .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("Dependencies") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - 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("Props") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Sas_T_CustomComponent", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.CustomEndpoint", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataSourceCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - 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") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ParametersJson") - .HasColumnType("text"); - - b.Property("PermissionsJson") - .HasColumnType("text"); - - b.Property("Sql") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Url") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.ToTable("Sas_T_CustomEndpoint", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.CustomEntity", 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(500) - .HasColumnType("nvarchar(500)"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("EndpointStatus") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("HasAuditFields") - .HasColumnType("bit"); - - b.Property("HasSoftDelete") - .HasColumnType("bit"); - - 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("MigrationId") - .HasColumnType("uniqueidentifier"); - - b.Property("MigrationStatus") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Sas_T_CustomEntity", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.CustomEntityField", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DefaultValue") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("DisplayOrder") - .HasColumnType("int"); - - b.Property("EntityId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsRequired") - .HasColumnType("bit"); - - b.Property("IsUnique") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaxLength") - .HasColumnType("int"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.ToTable("Sas_T_CustomEntityField", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.CustomerSegment", 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(500) - .HasColumnType("nvarchar(500)"); - - 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("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Crm_T_CustomerSegment", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.CustomerType", 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(500) - .HasColumnType("nvarchar(500)"); - - 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("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Crm_T_CustomerType", (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(256) - .HasColumnType("nvarchar(256)"); - - 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("Sas_H_DataSource", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Demo", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .IsRequired() - .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("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("FullName") - .IsRequired() - .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("Message") - .IsRequired() - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("NumberOfBranches") - .HasColumnType("int"); - - b.Property("NumberOfUsers") - .HasColumnType("int"); - - b.Property("OrganizationName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("PhoneNumber") - .HasMaxLength(20) - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_Demo", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Department", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Budget") - .ValueGeneratedOnAdd() - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)") - .HasDefaultValue(0m); - - b.Property("Code") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("CostCenterId") - .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(500) - .HasColumnType("nvarchar(500)"); - - 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("ManagerId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ParentDepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CostCenterId"); - - b.HasIndex("ManagerId"); - - b.HasIndex("ParentDepartmentId"); - - b.ToTable("Hr_T_Department", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Disease", 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("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_Disease", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.District", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("City") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("CityId") - .HasColumnType("uniqueidentifier"); - - b.Property("Country") - .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.Property("Street") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Township") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ZipCode") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.HasKey("Id"); - - b.HasIndex("CityId"); - - b.HasIndex("Country", "City", "Name", "Township", "Street", "ZipCode") - .IsUnique() - .HasFilter("[Country] IS NOT NULL AND [Township] IS NOT NULL AND [Street] IS NOT NULL AND [ZipCode] IS NOT NULL"); - - b.ToTable("Sas_H_District", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Document", 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(80) - .HasColumnType("nvarchar(80)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_Document", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.EducationStatus", 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(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Order") - .HasColumnType("smallint"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_EducationStatus", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Employee", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address1") - .HasColumnType("nvarchar(max)"); - - b.Property("Address2") - .HasColumnType("nvarchar(max)"); - - b.Property("Avatar") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("BadgeId") - .HasColumnType("uniqueidentifier"); - - b.Property("BankAccountId") - .HasColumnType("uniqueidentifier"); - - b.Property("BaseSalary") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("BirthDate") - .HasColumnType("datetime2"); - - b.Property("City") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasColumnType("nvarchar(max)"); - - 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("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("District") - .HasColumnType("nvarchar(max)"); - - b.Property("Email") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("EmergencyContactName") - .HasColumnType("nvarchar(max)"); - - b.Property("EmergencyContactPhoneNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("EmergencyContactRelationship") - .HasColumnType("nvarchar(max)"); - - b.Property("EmployeeStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("EmploymentTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("FullName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Gender") - .HasColumnType("nvarchar(max)"); - - b.Property("HireDate") - .HasColumnType("datetime2"); - - b.Property("IsActive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("JobPositionId") - .HasColumnType("uniqueidentifier"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ManagerId") - .HasColumnType("uniqueidentifier"); - - b.Property("MaritalStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("MobileNumber") - .HasMaxLength(50) - .HasColumnType("bigint"); - - b.Property("NationalId") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("PayrollGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PhoneNumber") - .HasMaxLength(50) - .HasColumnType("bigint"); - - b.Property("PostalCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Street") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TerminationDate") - .HasColumnType("datetime2"); - - b.Property("WorkLocation") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.HasKey("Id"); - - b.HasIndex("BadgeId"); - - b.HasIndex("BankAccountId"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("EmploymentTypeId"); - - b.HasIndex("JobPositionId"); - - b.HasIndex("ManagerId"); - - b.ToTable("Hr_T_Employee", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.EmploymentType", 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(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Hr_T_EmploymentType", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Event", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("EmployeeId") - .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.Property("Likes") - .HasColumnType("int"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParticipantsCount") - .HasColumnType("int"); - - b.Property("Place") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("isPublished") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("Id"); - - b.HasIndex("CategoryId"); - - b.HasIndex("EmployeeId"); - - b.HasIndex("TypeId"); - - b.ToTable("Net_T_Event", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.EventCategory", 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("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Net_T_EventCategory", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.EventComment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Content") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - 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("EmployeeId") - .HasColumnType("uniqueidentifier"); - - b.Property("EventId") - .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.Property("Likes") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EventId"); - - b.ToTable("Net_T_EventComment", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.EventPhoto", 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("EventId") - .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.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.HasKey("Id"); - - b.HasIndex("EventId"); - - b.ToTable("Net_T_EventPhoto", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.EventType", 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("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Net_T_EventType", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Expense", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Amount") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ApprovalDate") - .HasColumnType("datetime2"); - - b.Property("ApproverId") - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("EmployeeId") - .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.Property("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RejectionReason") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("RequestDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ApproverId"); - - b.HasIndex("EmployeeId"); - - b.ToTable("Hr_T_Expense", (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") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Url") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("Weight") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Sas_T_GlobalSearch", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.InstallmentOption", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Commission") - .HasPrecision(5, 3) - .HasColumnType("decimal(5,3)"); - - 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("Installment") - .HasColumnType("int"); - - 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(32) - .HasColumnType("nvarchar(32)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_InstallmentOption", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Interesting", 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(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Prt_T_Interesting", (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("Sas_T_IpRestriction", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.JobPosition", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - 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("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - 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("Level") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxSalary") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("MinSalary") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("Qualifications") - .HasColumnType("text"); - - b.Property("RequiredSkills") - .HasColumnType("text"); - - b.Property("Responsibilities") - .HasColumnType("text"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("DepartmentId"); - - b.ToTable("Hr_T_JobPosition", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Lawyer", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - 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(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Email") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("FaxNumber") - .HasMaxLength(20) - .HasColumnType("bigint"); - - b.Property("FullName") - .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("MobileNumber") - .HasMaxLength(20) - .HasColumnType("bigint"); - - b.Property("PhoneNumber") - .HasMaxLength(20) - .HasColumnType("bigint"); - - b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TaxNumber") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("TaxOffice") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_Lawyer", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Leave", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AppliedDate") - .HasColumnType("datetime2"); - - b.Property("ApprovedById") - .HasColumnType("uniqueidentifier"); - - b.Property("ApprovedDate") - .HasColumnType("datetime2"); - - b.Property("Attachments") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - 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("EmployeeId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsHalfDay") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LeaveType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Reason") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RejectionReason") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalDays") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("EmployeeId"); - - b.ToTable("Hr_T_Leave", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.LessonPeriod", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Day") - .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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lesson1") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Lesson2") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Lesson3") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Lesson4") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("BranchId"); - - b.ToTable("Crd_B_LessonPeriod", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Level", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ClassTypeId") - .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("LessonCount") - .HasColumnType("int"); - - b.Property("LessonDuration") - .HasColumnType("int"); - - b.Property("LevelType") - .HasMaxLength(15) - .HasColumnType("nvarchar(15)"); - - b.Property("MonthlyPaymentRate") - .HasPrecision(18, 4) - .HasColumnType("decimal(18,4)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("BranchId"); - - b.HasIndex("ClassTypeId"); - - b.ToTable("Crd_B_Level", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListForm", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdaptiveLayoutJson") - .HasColumnType("text"); - - b.Property("AnimationJson") - .HasColumnType("text"); - - b.Property("AnnotationsJson") - .HasColumnType("text"); - - b.Property("ArgumentAxisJson") - .HasColumnType("text"); - - b.Property("ColumnOptionJson") - .HasColumnType("text"); - - b.Property("CommandColumnJson") - .HasColumnType("text"); - - b.Property("CommonAnnotationsSettingsJson") - .HasColumnType("text"); - - b.Property("CommonAxisSettingsJson") - .HasColumnType("text"); - - b.Property("CommonJson") - .HasColumnType("text"); - - b.Property("CommonPaneSettingsJson") - .HasColumnType("text"); - - b.Property("CommonSeriesSettingsJson") - .HasColumnType("text"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CrosshairJson") - .HasColumnType("text"); - - b.Property("CultureName") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("CustomJsSourcesJson") - .HasColumnType("text"); - - b.Property("CustomStyleSourcesJson") - .HasColumnType("text"); - - b.Property("DataSourceCode") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("DataSourceJson") - .HasColumnType("text"); - - b.Property("DefaultFilter") - .HasColumnType("text"); - - b.Property("DeleteCommand") - .HasColumnType("text"); - - b.Property("DeleteFieldsDefaultValueJson") - .HasColumnType("text"); - - b.Property("DeleteServiceAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("EditingFormJson") - .HasColumnType("text"); - - b.Property("EditingOptionJson") - .HasColumnType("text"); - - b.Property("ExportJson") - .HasColumnType("text"); - - b.Property("ExtraFilterJson") - .HasColumnType("text"); - - b.Property("FilterPanelJson") - .HasColumnType("text"); - - b.Property("FilterRowJson") - .HasColumnType("text"); - - b.Property("FormFieldsDefaultValueJson") - .HasColumnType("text"); - - b.Property("GroupPanelJson") - .HasColumnType("text"); - - b.Property("HeaderFilterJson") - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("int"); - - b.Property("InsertCommand") - .HasColumnType("text"); - - b.Property("InsertFieldsDefaultValueJson") - .HasColumnType("text"); - - b.Property("InsertServiceAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("LayoutJson") - .HasColumnType("text"); - - b.Property("LegendJson") - .HasColumnType("text"); - - b.Property("ListFormCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ListFormType") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("MarginJson") - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PageSize") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(20); - - b.Property("PagerOptionJson") - .HasColumnType("text"); - - b.Property("PanesJson") - .HasColumnType("text"); - - b.Property("PermissionJson") - .HasColumnType("text"); - - b.Property("PivotOptionJson") - .HasColumnType("text"); - - b.Property("RoleId") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("RowJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrollBarJson") - .HasColumnType("text"); - - b.Property("SearchPanelJson") - .HasColumnType("text"); - - b.Property("SelectCommand") - .HasColumnType("text"); - - b.Property("SelectCommandType") - .HasColumnType("int"); - - b.Property("SelectFieldsDefaultValueJson") - .HasColumnType("text"); - - b.Property("SelectionJson") - .HasColumnType("text"); - - b.Property("SeriesJson") - .HasColumnType("text"); - - b.Property("ShowActivity") - .HasColumnType("bit"); - - b.Property("SizeJson") - .HasColumnType("text"); - - b.Property("SortMode") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("StateStoringJson") - .HasColumnType("text"); - - b.Property("SubFormsJson") - .HasColumnType("text"); - - b.Property("TableName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Title") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TitleJson") - .HasColumnType("text"); - - b.Property("TooltipJson") - .HasColumnType("text"); - - b.Property("UpdateCommand") - .HasColumnType("text"); - - b.Property("UpdateFieldsDefaultValueJson") - .HasColumnType("text"); - - b.Property("UpdateServiceAddress") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("UserId") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ValueAxisJson") - .HasColumnType("text"); - - b.Property("WidgetsJson") - .HasColumnType("text"); - - b.Property("Width") - .HasColumnType("int"); - - b.Property("ZoomAndPanJson") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Sas_H_ListForm", (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("text"); - - b.Property("CustomizationType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("FilterName") - .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("ListFormCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RoleId") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("UserId") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("ListFormCode"); - - b.ToTable("Sas_H_ListFormCustomization", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormField", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Alignment") - .ValueGeneratedOnAdd() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)") - .HasDefaultValue("left"); - - b.Property("AllowSearch") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("BandName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CaptionName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ColumnCssClass") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ColumnCssValue") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ColumnCustomizationJson") - .HasColumnType("text"); - - b.Property("ColumnFilterJson") - .HasColumnType("text"); - - b.Property("ColumnHeaderJson") - .HasColumnType("text"); - - b.Property("ColumnStylingJson") - .HasColumnType("text"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CultureName") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EditingJson") - .HasColumnType("text"); - - b.Property("EditorOptions") - .HasColumnType("text"); - - b.Property("FieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Format") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("GroupSummaryJson") - .HasColumnType("text"); - - b.Property("GroupingJson") - .HasColumnType("text"); - - b.Property("IsActive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("JoinTableJson") - .HasColumnType("text"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ListFormCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ListOrderNo") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(30); - - b.Property("LookupJson") - .HasColumnType("text"); - - b.Property("PermissionJson") - .HasColumnType("text"); - - b.Property("PivotSettingsJson") - .HasColumnType("text"); - - b.Property("RoleId") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("SortDirection") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("SortIndex") - .HasColumnType("int"); - - b.Property("SourceDbType") - .HasColumnType("int"); - - b.Property("TotalSummaryJson") - .HasColumnType("text"); - - b.Property("UserId") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ValidationRuleJson") - .HasColumnType("text"); - - b.Property("Visible") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("Width") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(100); - - b.HasKey("Id"); - - b.HasIndex("ListFormCode"); - - b.ToTable("Sas_H_ListFormField", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormImport", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlobName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("ListFormCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TotalRows") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ListFormCode"); - - b.ToTable("Sas_H_ListFormImport", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormImportExecute", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BlobName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("ErrorRows") - .HasColumnType("int"); - - b.Property("ErrorsJson") - .HasColumnType("text"); - - b.Property("ExecRows") - .HasColumnType("int"); - - b.Property("ImportId") - .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.Property("Progress") - .HasColumnType("float"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ValidRows") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ImportId"); - - b.ToTable("Sas_H_ListFormImportExecute", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.LogEntry", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Exception") - .HasColumnType("nvarchar(max)"); - - b.Property("Level") - .HasColumnType("nvarchar(max)"); - - b.Property("Message") - .HasColumnType("nvarchar(max)"); - - b.Property("MessageTemplate") - .HasColumnType("nvarchar(max)"); - - b.Property("Properties") - .HasColumnType("nvarchar(max)"); - - b.Property("TimeStamp") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("Plat_H_LogEntry", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.MaterialGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .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("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - 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("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ParentGroupId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ParentGroupId"); - - b.ToTable("Scp_T_MaterialGroup", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.MaterialType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .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("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - 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("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Scp_T_MaterialType", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Meal", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Date") - .HasColumnType("datetime2"); - - 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("Materials") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalCalorie") - .HasPrecision(9, 2) - .HasColumnType("decimal(9,2)"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId"); - - b.ToTable("Net_B_Meal", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.MeetingMethod", 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(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Prt_T_MeetingMethod", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.MeetingResult", 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(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Order") - .HasColumnType("smallint"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Prt_T_MeetingResult", (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(128) - .HasColumnType("nvarchar(128)"); - - 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(250) - .HasColumnType("nvarchar(250)"); - - b.Property("UserId") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.ToTable("Sas_H_Menu", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.NoteType", 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(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Prt_T_NoteType", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Order", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address1") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("Address2") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("City") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Commission") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - 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("FaxNumber") - .HasColumnType("bigint"); - - b.Property("Founder") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Installment") - .HasColumnType("int"); - - 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("MenuGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MobileNumber") - .HasColumnType("bigint"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrganizationName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("PaymentDataJson") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("PaymentMethodId") - .HasColumnType("uniqueidentifier"); - - b.Property("PhoneNumber") - .HasColumnType("bigint"); - - b.Property("PostalCode") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("Subtotal") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("TaxOffice") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Total") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("VknTckn") - .HasColumnType("bigint"); - - b.Property("Website") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_Order", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.OrderItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BillingCycle") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - 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("OrderId") - .HasColumnType("uniqueidentifier"); - - b.Property("ProductId") - .HasColumnType("uniqueidentifier"); - - b.Property("ProductName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Quantity") - .HasColumnType("int"); - - b.Property("TotalPrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.ToTable("Adm_T_OrderItem", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Overtime", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Amount") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("ApprovedById") - .HasColumnType("uniqueidentifier"); - - b.Property("ApprovedDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Date") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EmployeeId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndTime") - .HasMaxLength(10) - .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("Rate") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Reason") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("RejectionReason") - .HasColumnType("nvarchar(max)"); - - b.Property("StartTime") - .HasMaxLength(10) - .HasColumnType("datetime2"); - - b.Property("Status") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalHours") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("EmployeeId"); - - b.ToTable("Hr_T_Overtime", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Partner", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address1") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Address2") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("AssignedEmployeeId") - .HasColumnType("uniqueidentifier"); - - b.Property("AverageOrderValue") - .ValueGeneratedOnAdd() - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasDefaultValue(0m); - - b.Property("CardNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("City") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Country") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreditLimit") - .ValueGeneratedOnAdd() - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasDefaultValue(0m); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CurrentBalance") - .ValueGeneratedOnAdd() - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasDefaultValue(0m); - - b.Property("CustomerSegmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiscountRate") - .ValueGeneratedOnAdd() - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasDefaultValue(0m); - - b.Property("District") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Email") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("FaxNumber") - .HasMaxLength(32) - .HasColumnType("bigint"); - - 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("LastOrderDate") - .HasColumnType("datetime2"); - - b.Property("LifetimeValue") - .ValueGeneratedOnAdd() - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasDefaultValue(0m); - - b.Property("MobileNumber") - .HasMaxLength(32) - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("PartyType") - .HasColumnType("int"); - - b.Property("PaymentTermId") - .HasColumnType("uniqueidentifier"); - - b.Property("PerformanceMetricsJson") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasMaxLength(32) - .HasColumnType("bigint"); - - b.Property("PostalCode") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)"); - - b.Property("SectorId") - .HasColumnType("uniqueidentifier"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Street") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("SupplierTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("SupplyCardTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaxNumber") - .HasColumnType("bigint"); - - b.Property("TaxOffice") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TeamCode") - .HasMaxLength(95) - .HasColumnType("nvarchar(95)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalRevenue") - .ValueGeneratedOnAdd() - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasDefaultValue(0m); - - b.Property("ValidFrom") - .HasColumnType("datetime2"); - - b.Property("ValidTo") - .HasColumnType("datetime2"); - - b.Property("Website") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("AssignedEmployeeId"); - - b.HasIndex("CurrencyId"); - - b.HasIndex("CustomerSegmentId"); - - b.HasIndex("CustomerTypeId"); - - b.HasIndex("PaymentTermId"); - - b.HasIndex("SectorId"); - - b.HasIndex("SupplierTypeId"); - - b.HasIndex("SupplyCardTypeId"); - - b.ToTable("Adm_T_Partner", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.PartnerBank", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccountNumber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("AccountOwner") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("AccountType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Balance") - .ValueGeneratedOnAdd() - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasDefaultValue(0m); - - b.Property("BankName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("BranchName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("DailyTransferLimit") - .ValueGeneratedOnAdd() - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasDefaultValue(0m); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Iban") - .IsRequired() - .HasMaxLength(34) - .HasColumnType("nvarchar(34)"); - - b.Property("IsActive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("IsDefault") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - 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("OverdraftLimit") - .ValueGeneratedOnAdd() - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)") - .HasDefaultValue(0m); - - b.Property("PartnerId") - .HasColumnType("uniqueidentifier"); - - b.Property("SwiftCode") - .HasMaxLength(11) - .HasColumnType("nvarchar(11)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CurrencyId"); - - b.HasIndex("PartnerId"); - - b.ToTable("Adm_T_PartnerBank", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.PartnerCertificate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Certificate") - .IsRequired() - .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("ExpiryDate") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssueDate") - .HasColumnType("datetime2"); - - b.Property("Issuer") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartnerId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("PartnerId"); - - b.ToTable("Adm_T_PartnerCertificate", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.PartnerContact", 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("Department") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Email") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("FullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("IsActive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsPrimary") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MobileNumber") - .HasMaxLength(32) - .HasColumnType("bigint"); - - b.Property("PartnerId") - .HasColumnType("uniqueidentifier"); - - b.Property("PhoneNumber") - .HasMaxLength(32) - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Title") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("PartnerId"); - - b.ToTable("Adm_T_PartnerContact", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.PaymentMethod", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Commission") - .HasPrecision(5, 3) - .HasColumnType("decimal(5,3)"); - - 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("Logo") - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_PaymentMethod", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.PaymentTerm", 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(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Scp_T_PaymentTerm", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Payroll", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BaseSalary") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Bonus") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - 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("EmployeeId") - .HasColumnType("uniqueidentifier"); - - b.Property("GrossSalary") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - 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("NetSalary") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Overtime") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("PaymentDate") - .HasColumnType("datetime2"); - - b.Property("PeriodMonth") - .HasMaxLength(20) - .HasColumnType("int"); - - b.Property("PeriodYear") - .HasColumnType("int"); - - b.Property("SocialSecurity") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxNumber") - .HasPrecision(18, 2) - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Hr_T_Payroll", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.PayrollItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Amount") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - 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("ItemType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Mandatory") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PayrollItemId") - .HasColumnType("uniqueidentifier"); - - b.Property("Taxable") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("PayrollItemId"); - - b.ToTable("Hr_T_PayrollItem", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Performans360", 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("DepartmentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("EndDate") - .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("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TargetEmployees") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("TemplateId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("DepartmentId"); - - b.HasIndex("TemplateId"); - - b.ToTable("Hr_T_Performance360", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Product", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .IsRequired() - .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("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("ImageUrl") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsQuantityBased") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MonthlyPrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("YearlyPrice") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_Product", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Program", 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(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Crd_T_Program", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Psychologist", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - 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") - .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("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PhoneNumber") - .HasMaxLength(20) - .HasColumnType("bigint"); - - b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_Psychologist", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Question", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Content") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("CorrectAnswer") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - 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("Difficulty") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Explanation") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - 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("MediaType") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("MediaUrl") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Points") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("QuestionPoolId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeLimit") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Title") - .IsRequired() - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.HasKey("Id"); - - b.HasIndex("QuestionPoolId"); - - b.ToTable("Crd_T_Question", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.QuestionOption", 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("IsCorrect") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - 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("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionPoolId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Text") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("Id"); - - b.HasIndex("QuestionId"); - - b.ToTable("Crd_T_QuestionOption", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.QuestionPool", 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(500) - .HasColumnType("nvarchar(500)"); - - 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("Tags") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Crd_T_QuestionPool", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.QuestionTag", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Color") - .HasMaxLength(7) - .HasColumnType("nvarchar(7)"); - - 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(500) - .HasColumnType("nvarchar(500)"); - - 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("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UsageCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.HasKey("Id"); - - b.ToTable("Crd_T_QuestionTag", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.RegistrationMethod", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RegistrationTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("BranchId"); - - b.HasIndex("RegistrationTypeId"); - - b.ToTable("Crd_B_RegistrationMethod", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.RegistrationType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("BranchId"); - - b.ToTable("Crd_B_RegistrationType", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ReportCategory", 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(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Icon") - .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("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Sas_T_ReportCategory", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ReportGenerated", 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("GeneratedContent") - .IsRequired() - .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("Parameters") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("TemplateId") - .HasColumnType("uniqueidentifier"); - - b.Property("TemplateName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("TemplateId"); - - b.ToTable("Sas_T_ReportGenerated", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ReportParameter", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DefaultValue") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - 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("Placeholder") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("TemplateId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("TemplateId"); - - b.ToTable("Sas_T_ReportParameter", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ReportTemplate", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryId") - .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(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("HtmlContent") - .IsRequired() - .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("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Tags") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CategoryId"); - - b.ToTable("Sas_T_ReportTemplate", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Reservation", 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("EmployeeId") - .HasColumnType("uniqueidentifier"); - - b.Property("EndDate") - .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("Notes") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Participants") - .HasColumnType("int"); - - b.Property("Purpose") - .IsRequired() - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("ResourceName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("EmployeeId"); - - b.ToTable("Net_T_Reservation", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Route", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Authority") - .HasColumnType("nvarchar(max)"); - - b.Property("ComponentPath") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - 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("Key") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("RouteType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Key") - .IsUnique(); - - b.ToTable("Sas_H_Route", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SalesRejectionReason", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .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("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(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Prt_T_SalesRejectionReason", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Schedule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .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("EndTime") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("Friday") - .HasColumnType("bit"); - - b.Property("IncludeLunch") - .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("LessonBreakMinute") - .HasColumnType("int"); - - b.Property("LessonCount") - .HasColumnType("int"); - - b.Property("LessonMinute") - .HasColumnType("int"); - - b.Property("LunchMinute") - .HasColumnType("int"); - - b.Property("LunchTime") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("Monday") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Saturday") - .HasColumnType("bit"); - - b.Property("StartTime") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("Status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Sunday") - .HasColumnType("bit"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Thursday") - .HasColumnType("bit"); - - b.Property("Tuesday") - .HasColumnType("bit"); - - b.Property("Wednesday") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.HasIndex("BranchId"); - - b.ToTable("Crd_B_Schedule", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ScheduleLesson", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Day") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EndTime") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - 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("LessonBreakMinute") - .HasColumnType("int"); - - b.Property("LessonMinute") - .HasColumnType("int"); - - b.Property("LessonNo") - .HasColumnType("int"); - - b.Property("ScheduleId") - .HasColumnType("uniqueidentifier"); - - b.Property("StartTime") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleId"); - - b.ToTable("Crd_B_ScheduleLesson", (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("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("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Sas_T_Sector", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Service", 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("Features") - .HasColumnType("nvarchar(max)"); - - b.Property("Icon") - .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("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_Service", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ShuttleRoute", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArrivalTime") - .HasMaxLength(10) - .HasColumnType("datetime2"); - - b.Property("Available") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Capacity") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - 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("DepartureTime") - .HasMaxLength(10) - .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("Name") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("Route") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.HasKey("Id"); - - b.ToTable("Net_T_ShuttleRoute", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.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("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("SkillTypeId"); - - b.ToTable("Adm_T_Skill", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.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") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - 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") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("SkillTypeId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("SkillTypeId"); - - b.ToTable("Adm_T_SkillLevel", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.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.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_SkillType", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SocialComment", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(8000) - .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("EmployeeId") - .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.Property("SocialPostId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EmployeeId"); - - b.HasIndex("SocialPostId"); - - b.ToTable("Net_T_SocialComment", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SocialLike", 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("EmployeeId") - .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.Property("SocialPostId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EmployeeId"); - - b.HasIndex("SocialPostId"); - - b.ToTable("Net_T_SocialLike", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SocialLocation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .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("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lat") - .HasColumnType("float"); - - b.Property("Lng") - .HasColumnType("float"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("PlaceId") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("SocialPostId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("SocialPostId") - .IsUnique(); - - b.ToTable("Net_T_SocialLocation", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SocialMedia", 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("PollEndsAt") - .HasColumnType("datetime2"); - - b.Property("PollQuestion") - .HasColumnType("nvarchar(max)"); - - b.Property("PollTotalVotes") - .HasColumnType("int"); - - b.Property("PollUserVoteId") - .HasColumnType("nvarchar(max)"); - - b.Property("SocialPostId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.PrimitiveCollection("Urls") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("Id"); - - b.HasIndex("SocialPostId") - .IsUnique(); - - b.ToTable("Net_T_SocialMedia", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SocialPollOption", 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("SocialMediaId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("Votes") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("SocialMediaId"); - - b.ToTable("Net_T_SocialPollOption", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SocialPost", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - 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("EmployeeId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsLiked") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("IsOwnPost") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LikeCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EmployeeId"); - - b.ToTable("Net_T_SocialPost", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Source", 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(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Status") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Prt_T_Source", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SupplyCardType", 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(500) - .HasColumnType("nvarchar(500)"); - - 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("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Scp_T_SupplyCardType", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SupplyType", 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(500) - .HasColumnType("nvarchar(500)"); - - 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("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Scp_T_SupplyType", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Survey", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Deadline") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("IsAnonymous") - .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("Responses") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Status") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("Id"); - - b.ToTable("Hr_T_Survey", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SurveyAnswer", 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("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("QuestionType") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ResponseId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("QuestionId"); - - b.HasIndex("ResponseId"); - - b.ToTable("Hr_T_SurveyAnswer", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SurveyQuestion", 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("IsRequired") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Order") - .HasColumnType("int"); - - b.Property("QuestionText") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("SurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("SurveyId"); - - b.ToTable("Hr_T_SurveyQuestion", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SurveyQuestionOption", 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("Order") - .HasColumnType("int"); - - b.Property("QuestionId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Text") - .IsRequired() - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.HasKey("Id"); - - b.HasIndex("QuestionId"); - - b.ToTable("Hr_T_SurveyQuestionOption", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SurveyResponse", 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("EmployeeId") - .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.Property("SubmissionTime") - .HasColumnType("datetime2"); - - b.Property("SurveyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EmployeeId"); - - b.HasIndex("SurveyId"); - - b.ToTable("Hr_T_SurveyResponse", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Template360", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AssessorTypes") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - 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(500) - .HasColumnType("nvarchar(500)"); - - 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("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("QuestionGroupsJson") - .HasColumnType("text"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Hr_T_Template360", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Training", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Category") - .IsRequired() - .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("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Duration") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("Enrolled") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Instructor") - .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("Location") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("MaxParticipants") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Thumbnail") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Net_T_Training", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Uom", 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("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("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("nvarchar(32)"); - - b.Property("UomCategoryId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UomCategoryId"); - - b.ToTable("Adm_T_Uom", (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.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_UomCategory", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Vaccine", 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(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_Vaccine", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Vehicle", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AssistantDriverName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("AssistantDriverNationalId") - .HasMaxLength(11) - .HasColumnType("nvarchar(11)"); - - b.Property("AssistantDriverPhone1") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("AssistantDriverPhone2") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Brand") - .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("DriverName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DriverNationalId") - .HasMaxLength(11) - .HasColumnType("nvarchar(11)"); - - b.Property("DriverPhone1") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("DriverPhone2") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - 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("ModelYear") - .HasColumnType("int"); - - b.Property("Plate") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Status") - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_Vehicle", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Visitor", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BadgeNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CheckIn") - .HasColumnType("datetime2"); - - b.Property("CheckOut") - .HasColumnType("datetime2"); - - b.Property("CompanyName") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - 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") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("EmployeeId") - .HasColumnType("uniqueidentifier"); - - b.Property("FullName") - .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("PhoneNumber") - .HasMaxLength(20) - .HasColumnType("bigint"); - - b.Property("Photo") - .HasColumnType("nvarchar(max)"); - - b.Property("Purpose") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("VisitDate") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.HasIndex("EmployeeId"); - - b.ToTable("Net_T_Visitor", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.WorkHour", 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("EndHour") - .HasMaxLength(8) - .HasColumnType("datetime2"); - - b.Property("Friday") - .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("Monday") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Saturday") - .HasColumnType("bit"); - - b.Property("StartHour") - .HasMaxLength(8) - .HasColumnType("datetime2"); - - b.Property("Sunday") - .HasColumnType("bit"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Thursday") - .HasColumnType("bit"); - - b.Property("Tuesday") - .HasColumnType("bit"); - - b.Property("Wednesday") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("Adm_T_WorkHour", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Forum.ForumCategory", 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsActive") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsLocked") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LastPostDate") - .HasColumnType("datetime2"); - - b.Property("LastPostId") - .HasColumnType("uniqueidentifier"); - - b.Property("LastPostUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LastPostUserName") - .HasColumnType("nvarchar(max)"); - - 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"); - - b.Property("TopicCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("DisplayOrder"); - - b.ToTable("Sas_H_ForumCategory", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Forum.ForumPost", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuthorId") - .HasColumnType("uniqueidentifier"); - - b.Property("AuthorName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Content") - .IsRequired() - .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("IsAcceptedAnswer") - .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("LikeCount") - .HasColumnType("int"); - - b.Property("ParentPostId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TopicId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ParentPostId"); - - b.HasIndex("TopicId"); - - b.ToTable("Sas_H_ForumPost", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Forum.ForumTopic", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuthorId") - .HasColumnType("uniqueidentifier"); - - b.Property("AuthorName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("CategoryId") - .HasColumnType("uniqueidentifier"); - - b.Property("Content") - .IsRequired() - .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("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsLocked") - .HasColumnType("bit"); - - b.Property("IsPinned") - .HasColumnType("bit"); - - b.Property("IsSolved") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LastPostDate") - .HasColumnType("datetime2"); - - b.Property("LastPostId") - .HasColumnType("uniqueidentifier"); - - b.Property("LastPostUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LastPostUserName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LikeCount") - .HasColumnType("int"); - - b.Property("ReplyCount") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ViewCount") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("CategoryId"); - - b.HasIndex("IsPinned"); - - b.HasIndex("LastPostDate"); - - b.ToTable("Sas_H_ForumTopic", (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("Plat_H_SettingDefinition", (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("MenuGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("Address1") - .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("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(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EntityVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .IsRequired() - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FaxNumber") - .HasColumnType("bigint"); - - b.Property("Founder") - .HasColumnType("nvarchar(max)"); - - 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("MenuGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MobileNumber") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OrganizationName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PhoneNumber") - .HasColumnType("bigint"); - - b.Property("PostalCode") - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("Street") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - 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.Language", null) - .WithMany() - .HasForeignKey("CultureName") - .HasPrincipalKey("CultureName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Kurs.Languages.Entities.LanguageKey", "LanguageKey") - .WithMany("Texts") - .HasForeignKey("ResourceName", "Key") - .HasPrincipalKey("ResourceName", "Key") - .OnDelete(DeleteBehavior.Cascade); - - b.Navigation("LanguageKey"); - }); - - modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueue", b => - { - b.HasOne("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueTableFormat", "TableFormat") - .WithMany("MailQueues") - .HasForeignKey("TableName") - .HasPrincipalKey("TableName") - .OnDelete(DeleteBehavior.Cascade); - - b.Navigation("TableFormat"); - }); - - modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueEvents", b => - { - b.HasOne("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueue", "MailQueue") - .WithMany("Events") - .HasForeignKey("AwsMessageId") - .HasPrincipalKey("AwsMessageId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("MailQueue"); - }); - - modelBuilder.Entity("Kurs.Notifications.Entities.Notification", b => - { - b.HasOne("Kurs.Notifications.Entities.NotificationRule", "NotificationRule") - .WithMany("Notifications") - .HasForeignKey("NotificationRuleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("NotificationRule"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Announcement", b => - { - b.HasOne("Kurs.Platform.Entities.Employee", "Employee") - .WithMany("Announcements") - .HasForeignKey("EmployeeId") - .OnDelete(DeleteBehavior.Restrict); - - b.Navigation("Employee"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ApiEndpoint", b => - { - b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity") - .WithMany() - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Entity"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ApiMigration", b => - { - b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity") - .WithMany() - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Entity"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BankAccount", b => - { - b.HasOne("Kurs.Platform.Entities.Bank", "Bank") - .WithMany() - .HasForeignKey("BankId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Bank"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BlogPost", b => - { - b.HasOne("Kurs.Platform.Entities.BlogCategory", "Category") - .WithMany("Posts") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.HasOne("Kurs.Platform.Entities.Employee", "Employee") - .WithMany("BlogPosts") - .HasForeignKey("EmployeeId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Category"); - - b.Navigation("Employee"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BranchUsers", b => - { - b.HasOne("Kurs.Platform.Entities.Branch", "Branch") - .WithMany("UserBranches") - .HasForeignKey("BranchId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Branch"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Certificate", b => - { - b.HasOne("Kurs.Platform.Entities.Employee", "Employee") - .WithMany("Certificates") - .HasForeignKey("EmployeeId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.HasOne("Kurs.Platform.Entities.Training", "Training") - .WithMany("Certificates") - .HasForeignKey("TrainingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Employee"); - - b.Navigation("Training"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.City", b => - { - b.HasOne("Kurs.Platform.Entities.Country", null) - .WithMany("Cities") - .HasForeignKey("CountryId"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Class", b => - { - b.HasOne("Kurs.Platform.Entities.Branch", "Branch") - .WithMany("Classes") - .HasForeignKey("BranchId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("Kurs.Platform.Entities.ClassType", "ClassType") - .WithMany("Classes") - .HasForeignKey("ClassTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Branch"); - - b.Navigation("ClassType"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ClassType", b => - { - b.HasOne("Kurs.Platform.Entities.Branch", "Branch") - .WithMany("ClassTypes") - .HasForeignKey("BranchId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("Kurs.Platform.Entities.RegistrationType", "RegistrationType") - .WithMany("ClassTypes") - .HasForeignKey("RegistrationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Branch"); - - b.Navigation("RegistrationType"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ClassroomAttandance", b => - { - b.HasOne("Kurs.Platform.Entities.Classroom", "Session") - .WithMany("AttendanceRecords") - .HasForeignKey("SessionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Session"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ClassroomChat", b => - { - b.HasOne("Kurs.Platform.Entities.Classroom", "Session") - .WithMany("ChatMessages") - .HasForeignKey("SessionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Session"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ClassroomParticipant", b => - { - b.HasOne("Kurs.Platform.Entities.Classroom", "Session") - .WithMany("Participants") - .HasForeignKey("SessionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Session"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.CostCenter", b => - { - b.HasOne("Kurs.Platform.Entities.Department", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("Kurs.Platform.Entities.CostCenter", "ParentCostCenter") - .WithMany("SubCostCenters") - .HasForeignKey("ParentCostCenterId"); - - b.HasOne("Kurs.Platform.Entities.Employee", "ResponsibleEmployee") - .WithMany() - .HasForeignKey("ResponsibleEmployeeId"); - - b.Navigation("Department"); - - b.Navigation("ParentCostCenter"); - - b.Navigation("ResponsibleEmployee"); - }); - - 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.CustomEntityField", b => - { - b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity") - .WithMany("Fields") - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Entity"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Department", b => - { - b.HasOne("Kurs.Platform.Entities.CostCenter", "CostCenter") - .WithMany() - .HasForeignKey("CostCenterId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("Kurs.Platform.Entities.Employee", "Manager") - .WithMany() - .HasForeignKey("ManagerId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("Kurs.Platform.Entities.Department", "ParentDepartment") - .WithMany("SubDepartments") - .HasForeignKey("ParentDepartmentId") - .OnDelete(DeleteBehavior.Restrict); - - b.Navigation("CostCenter"); - - b.Navigation("Manager"); - - b.Navigation("ParentDepartment"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.District", b => - { - b.HasOne("Kurs.Platform.Entities.City", null) - .WithMany("Districts") - .HasForeignKey("CityId"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Employee", b => - { - b.HasOne("Kurs.Platform.Entities.Badge", "Badge") - .WithMany() - .HasForeignKey("BadgeId"); - - b.HasOne("Kurs.Platform.Entities.BankAccount", "BankAccount") - .WithMany() - .HasForeignKey("BankAccountId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("Kurs.Platform.Entities.Department", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.HasOne("Kurs.Platform.Entities.EmploymentType", "EmploymentType") - .WithMany() - .HasForeignKey("EmploymentTypeId"); - - b.HasOne("Kurs.Platform.Entities.JobPosition", "JobPosition") - .WithMany() - .HasForeignKey("JobPositionId"); - - b.HasOne("Kurs.Platform.Entities.Employee", "Manager") - .WithMany() - .HasForeignKey("ManagerId"); - - b.Navigation("Badge"); - - b.Navigation("BankAccount"); - - b.Navigation("Department"); - - b.Navigation("EmploymentType"); - - b.Navigation("JobPosition"); - - b.Navigation("Manager"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Event", b => - { - b.HasOne("Kurs.Platform.Entities.EventCategory", "Category") - .WithMany("Events") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Kurs.Platform.Entities.Employee", "Employee") - .WithMany() - .HasForeignKey("EmployeeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Kurs.Platform.Entities.EventType", "Type") - .WithMany("Events") - .HasForeignKey("TypeId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Category"); - - b.Navigation("Employee"); - - b.Navigation("Type"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.EventComment", b => - { - b.HasOne("Kurs.Platform.Entities.Event", "Event") - .WithMany("Comments") - .HasForeignKey("EventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Event"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.EventPhoto", b => - { - b.HasOne("Kurs.Platform.Entities.Event", "Event") - .WithMany("Photos") - .HasForeignKey("EventId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Event"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Expense", b => - { - b.HasOne("Kurs.Platform.Entities.Employee", "Approver") - .WithMany() - .HasForeignKey("ApproverId"); - - b.HasOne("Kurs.Platform.Entities.Employee", "Employee") - .WithMany("ExpenseRequests") - .HasForeignKey("EmployeeId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Approver"); - - b.Navigation("Employee"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.JobPosition", b => - { - b.HasOne("Kurs.Platform.Entities.Department", "Department") - .WithMany() - .HasForeignKey("DepartmentId"); - - b.Navigation("Department"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Leave", b => - { - b.HasOne("Kurs.Platform.Entities.Employee", "Employee") - .WithMany("Leaves") - .HasForeignKey("EmployeeId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Employee"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.LessonPeriod", b => - { - b.HasOne("Kurs.Platform.Entities.Branch", "Branch") - .WithMany("LessonPeriods") - .HasForeignKey("BranchId") - .OnDelete(DeleteBehavior.Restrict); - - b.Navigation("Branch"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Level", b => - { - b.HasOne("Kurs.Platform.Entities.Branch", "Branch") - .WithMany("Levels") - .HasForeignKey("BranchId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("Kurs.Platform.Entities.ClassType", "ClassType") - .WithMany("Levels") - .HasForeignKey("ClassTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Branch"); - - b.Navigation("ClassType"); - }); - - 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.ListFormImport", b => - { - b.HasOne("Kurs.Platform.Entities.ListForm", null) - .WithMany() - .HasForeignKey("ListFormCode") - .HasPrincipalKey("ListFormCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ListFormImportExecute", b => - { - b.HasOne("Kurs.Platform.Entities.ListFormImport", null) - .WithMany() - .HasForeignKey("ImportId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.MaterialGroup", b => - { - b.HasOne("Kurs.Platform.Entities.MaterialGroup", "ParentGroup") - .WithMany("SubGroups") - .HasForeignKey("ParentGroupId") - .OnDelete(DeleteBehavior.Restrict); - - b.Navigation("ParentGroup"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Meal", b => - { - b.HasOne("Kurs.Platform.Entities.Branch", "Branch") - .WithMany("Meals") - .HasForeignKey("BranchId") - .OnDelete(DeleteBehavior.Restrict); - - b.Navigation("Branch"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.OrderItem", b => - { - b.HasOne("Kurs.Platform.Entities.Order", "Order") - .WithMany("Items") - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Order"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Overtime", b => - { - b.HasOne("Kurs.Platform.Entities.Employee", "Employee") - .WithMany("Overtimes") - .HasForeignKey("EmployeeId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Employee"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Partner", b => - { - b.HasOne("Kurs.Platform.Entities.Employee", "AssignedEmployee") - .WithMany("Partners") - .HasForeignKey("AssignedEmployeeId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("Kurs.Platform.Entities.Currency", "Currency") - .WithMany() - .HasForeignKey("CurrencyId"); - - b.HasOne("Kurs.Platform.Entities.CustomerSegment", "CustomerSegment") - .WithMany("Partners") - .HasForeignKey("CustomerSegmentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("Kurs.Platform.Entities.CustomerType", "CustomerType") - .WithMany("Partners") - .HasForeignKey("CustomerTypeId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("Kurs.Platform.Entities.PaymentTerm", "PaymentTerm") - .WithMany() - .HasForeignKey("PaymentTermId"); - - b.HasOne("Kurs.Platform.Entities.Sector", "Sector") - .WithMany() - .HasForeignKey("SectorId"); - - b.HasOne("Kurs.Platform.Entities.SupplyType", "SupplierType") - .WithMany("Partners") - .HasForeignKey("SupplierTypeId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("Kurs.Platform.Entities.SupplyCardType", "SupplyCardType") - .WithMany("Partners") - .HasForeignKey("SupplyCardTypeId") - .OnDelete(DeleteBehavior.Restrict); - - b.Navigation("AssignedEmployee"); - - b.Navigation("Currency"); - - b.Navigation("CustomerSegment"); - - b.Navigation("CustomerType"); - - b.Navigation("PaymentTerm"); - - b.Navigation("Sector"); - - b.Navigation("SupplierType"); - - b.Navigation("SupplyCardType"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.PartnerBank", b => - { - b.HasOne("Kurs.Platform.Entities.Currency", "Currency") - .WithMany() - .HasForeignKey("CurrencyId"); - - b.HasOne("Kurs.Platform.Entities.Partner", "Partner") - .WithMany("Banks") - .HasForeignKey("PartnerId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Currency"); - - b.Navigation("Partner"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.PartnerCertificate", b => - { - b.HasOne("Kurs.Platform.Entities.Partner", "Partner") - .WithMany("Certificates") - .HasForeignKey("PartnerId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Partner"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.PartnerContact", b => - { - b.HasOne("Kurs.Platform.Entities.Partner", "Partner") - .WithMany("Contacts") - .HasForeignKey("PartnerId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Partner"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.PayrollItem", b => - { - b.HasOne("Kurs.Platform.Entities.Payroll", "Payroll") - .WithMany("Items") - .HasForeignKey("PayrollItemId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Payroll"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Performans360", b => - { - b.HasOne("Kurs.Platform.Entities.Department", "Department") - .WithMany("Performans360s") - .HasForeignKey("DepartmentId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("Kurs.Platform.Entities.Template360", "Template") - .WithMany("Performans360s") - .HasForeignKey("TemplateId") - .OnDelete(DeleteBehavior.Cascade); - - b.Navigation("Department"); - - b.Navigation("Template"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Question", b => - { - b.HasOne("Kurs.Platform.Entities.QuestionPool", "QuestionPool") - .WithMany("Questions") - .HasForeignKey("QuestionPoolId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("QuestionPool"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.QuestionOption", b => - { - b.HasOne("Kurs.Platform.Entities.Question", "Question") - .WithMany("Options") - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Question"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.RegistrationMethod", b => - { - b.HasOne("Kurs.Platform.Entities.Branch", "Branch") - .WithMany("RegistrationMethods") - .HasForeignKey("BranchId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("Kurs.Platform.Entities.RegistrationType", "RegistrationType") - .WithMany("Methods") - .HasForeignKey("RegistrationTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Branch"); - - b.Navigation("RegistrationType"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.RegistrationType", b => - { - b.HasOne("Kurs.Platform.Entities.Branch", "Branch") - .WithMany("RegistrationTypes") - .HasForeignKey("BranchId") - .OnDelete(DeleteBehavior.Restrict); - - b.Navigation("Branch"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ReportGenerated", b => - { - b.HasOne("Kurs.Platform.Entities.ReportTemplate", "ReportTemplate") - .WithMany("Generated") - .HasForeignKey("TemplateId") - .OnDelete(DeleteBehavior.Cascade); - - b.Navigation("ReportTemplate"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ReportParameter", b => - { - b.HasOne("Kurs.Platform.Entities.ReportTemplate", "ReportTemplate") - .WithMany("Parameters") - .HasForeignKey("TemplateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ReportTemplate"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ReportTemplate", b => - { - b.HasOne("Kurs.Platform.Entities.ReportCategory", "ReportCategory") - .WithMany("ReportTemplates") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ReportCategory"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Reservation", b => - { - b.HasOne("Kurs.Platform.Entities.Employee", "Employee") - .WithMany("Reservations") - .HasForeignKey("EmployeeId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Employee"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Schedule", b => - { - b.HasOne("Kurs.Platform.Entities.Branch", "Branch") - .WithMany("Schedules") - .HasForeignKey("BranchId") - .OnDelete(DeleteBehavior.Restrict); - - b.Navigation("Branch"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ScheduleLesson", b => - { - b.HasOne("Kurs.Platform.Entities.Schedule", "Schedule") - .WithMany("Lessons") - .HasForeignKey("ScheduleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Skill", b => - { - b.HasOne("Kurs.Platform.Entities.SkillType", "SkillType") - .WithMany("Skills") - .HasForeignKey("SkillTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SkillType"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SkillLevel", b => - { - b.HasOne("Kurs.Platform.Entities.SkillType", "SkillType") - .WithMany("Levels") - .HasForeignKey("SkillTypeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SkillType"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SocialComment", b => - { - b.HasOne("Kurs.Platform.Entities.Employee", "Employee") - .WithMany() - .HasForeignKey("EmployeeId"); - - b.HasOne("Kurs.Platform.Entities.SocialPost", "SocialPost") - .WithMany("Comments") - .HasForeignKey("SocialPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Employee"); - - b.Navigation("SocialPost"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SocialLike", b => - { - b.HasOne("Kurs.Platform.Entities.Employee", "Employee") - .WithMany() - .HasForeignKey("EmployeeId"); - - b.HasOne("Kurs.Platform.Entities.SocialPost", "SocialPost") - .WithMany("Likes") - .HasForeignKey("SocialPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Employee"); - - b.Navigation("SocialPost"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SocialLocation", b => - { - b.HasOne("Kurs.Platform.Entities.SocialPost", "SocialPost") - .WithOne("Location") - .HasForeignKey("Kurs.Platform.Entities.SocialLocation", "SocialPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SocialPost"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SocialMedia", b => - { - b.HasOne("Kurs.Platform.Entities.SocialPost", "SocialPost") - .WithOne("Media") - .HasForeignKey("Kurs.Platform.Entities.SocialMedia", "SocialPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SocialPost"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SocialPollOption", b => - { - b.HasOne("Kurs.Platform.Entities.SocialMedia", "SocialMedia") - .WithMany("PollOptions") - .HasForeignKey("SocialMediaId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("SocialMedia"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SocialPost", b => - { - b.HasOne("Kurs.Platform.Entities.Employee", "Employee") - .WithMany() - .HasForeignKey("EmployeeId"); - - b.Navigation("Employee"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SurveyAnswer", b => - { - b.HasOne("Kurs.Platform.Entities.SurveyQuestion", "Question") - .WithMany() - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.HasOne("Kurs.Platform.Entities.SurveyResponse", "Response") - .WithMany("Answers") - .HasForeignKey("ResponseId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Question"); - - b.Navigation("Response"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SurveyQuestion", b => - { - b.HasOne("Kurs.Platform.Entities.Survey", "Survey") - .WithMany("Questions") - .HasForeignKey("SurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Survey"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SurveyQuestionOption", b => - { - b.HasOne("Kurs.Platform.Entities.SurveyQuestion", "Question") - .WithMany("Options") - .HasForeignKey("QuestionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Question"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SurveyResponse", b => - { - b.HasOne("Kurs.Platform.Entities.Employee", "Employee") - .WithMany("SurveyResponses") - .HasForeignKey("EmployeeId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("Kurs.Platform.Entities.Survey", "Survey") - .WithMany("SurveyResponses") - .HasForeignKey("SurveyId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Employee"); - - b.Navigation("Survey"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Uom", b => - { - b.HasOne("Kurs.Platform.Entities.UomCategory", "UomCategory") - .WithMany("Uoms") - .HasForeignKey("UomCategoryId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("UomCategory"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Visitor", b => - { - b.HasOne("Kurs.Platform.Entities.Employee", "Employee") - .WithMany("Visitors") - .HasForeignKey("EmployeeId") - .OnDelete(DeleteBehavior.Restrict); - - b.Navigation("Employee"); - }); - - modelBuilder.Entity("Kurs.Platform.Forum.ForumPost", b => - { - b.HasOne("Kurs.Platform.Forum.ForumPost", "ParentPost") - .WithMany("Replies") - .HasForeignKey("ParentPostId") - .OnDelete(DeleteBehavior.Restrict); - - b.HasOne("Kurs.Platform.Forum.ForumTopic", "Topic") - .WithMany("Posts") - .HasForeignKey("TopicId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ParentPost"); - - b.Navigation("Topic"); - }); - - modelBuilder.Entity("Kurs.Platform.Forum.ForumTopic", b => - { - b.HasOne("Kurs.Platform.Forum.ForumCategory", "Category") - .WithMany("Topics") - .HasForeignKey("CategoryId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Category"); - }); - - 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.MailQueue.Domain.Entities.BackgroundWorker_MailQueue", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueTableFormat", b => - { - b.Navigation("MailQueues"); - }); - - modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b => - { - b.Navigation("Notifications"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.BlogCategory", b => - { - b.Navigation("Posts"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Branch", b => - { - b.Navigation("ClassTypes"); - - b.Navigation("Classes"); - - b.Navigation("LessonPeriods"); - - b.Navigation("Levels"); - - b.Navigation("Meals"); - - b.Navigation("RegistrationMethods"); - - b.Navigation("RegistrationTypes"); - - b.Navigation("Schedules"); - - b.Navigation("UserBranches"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.City", b => - { - b.Navigation("Districts"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ClassType", b => - { - b.Navigation("Classes"); - - b.Navigation("Levels"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Classroom", b => - { - b.Navigation("AttendanceRecords"); - - b.Navigation("ChatMessages"); - - b.Navigation("Participants"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.CostCenter", b => - { - b.Navigation("SubCostCenters"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Country", b => - { - b.Navigation("Cities"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.CustomEntity", b => - { - b.Navigation("Fields"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.CustomerSegment", b => - { - b.Navigation("Partners"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.CustomerType", b => - { - b.Navigation("Partners"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Department", b => - { - b.Navigation("Performans360s"); - - b.Navigation("SubDepartments"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Employee", b => - { - b.Navigation("Announcements"); - - b.Navigation("BlogPosts"); - - b.Navigation("Certificates"); - - b.Navigation("ExpenseRequests"); - - b.Navigation("Leaves"); - - b.Navigation("Overtimes"); - - b.Navigation("Partners"); - - b.Navigation("Reservations"); - - b.Navigation("SurveyResponses"); - - b.Navigation("Visitors"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Event", b => - { - b.Navigation("Comments"); - - b.Navigation("Photos"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.EventCategory", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.EventType", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.MaterialGroup", b => - { - b.Navigation("SubGroups"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Order", b => - { - b.Navigation("Items"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Partner", b => - { - b.Navigation("Banks"); - - b.Navigation("Certificates"); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Payroll", b => - { - b.Navigation("Items"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Question", b => - { - b.Navigation("Options"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.QuestionPool", b => - { - b.Navigation("Questions"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.RegistrationType", b => - { - b.Navigation("ClassTypes"); - - b.Navigation("Methods"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ReportCategory", b => - { - b.Navigation("ReportTemplates"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ReportTemplate", b => - { - b.Navigation("Generated"); - - b.Navigation("Parameters"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Schedule", b => - { - b.Navigation("Lessons"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SkillType", b => - { - b.Navigation("Levels"); - - b.Navigation("Skills"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SocialMedia", b => - { - b.Navigation("PollOptions"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SocialPost", b => - { - b.Navigation("Comments"); - - b.Navigation("Likes"); - - b.Navigation("Location"); - - b.Navigation("Media"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SupplyCardType", b => - { - b.Navigation("Partners"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SupplyType", b => - { - b.Navigation("Partners"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Survey", b => - { - b.Navigation("Questions"); - - b.Navigation("SurveyResponses"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SurveyQuestion", b => - { - b.Navigation("Options"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.SurveyResponse", b => - { - b.Navigation("Answers"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Template360", b => - { - b.Navigation("Performans360s"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.Training", b => - { - b.Navigation("Certificates"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.UomCategory", b => - { - b.Navigation("Uoms"); - }); - - modelBuilder.Entity("Kurs.Platform.Forum.ForumCategory", b => - { - b.Navigation("Topics"); - }); - - modelBuilder.Entity("Kurs.Platform.Forum.ForumPost", b => - { - b.Navigation("Replies"); - }); - - modelBuilder.Entity("Kurs.Platform.Forum.ForumTopic", b => - { - b.Navigation("Posts"); - }); - - 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/20251104205840_DynamicService.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251104205840_DynamicService.cs deleted file mode 100644 index f90d8729..00000000 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251104205840_DynamicService.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Kurs.Platform.Migrations -{ - /// - public partial class DynamicService : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Plat_H_DynamicService", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - DisplayName = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), - Description = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), - Code = table.Column(type: "text", nullable: false), - IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), - CompilationStatus = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LastCompilationError = table.Column(type: "text", nullable: true), - LastSuccessfulCompilation = table.Column(type: "datetime2", nullable: true), - Version = table.Column(type: "int", nullable: false, defaultValue: 1), - CodeHash = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PrimaryEntityType = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - ControllerName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Plat_H_DynamicService", x => x.Id); - }); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Plat_H_DynamicService"); - } - } -} diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251104205840_DynamicService.Designer.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251105082644_Initial.Designer.cs similarity index 99% rename from api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251104205840_DynamicService.Designer.cs rename to api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251105082644_Initial.Designer.cs index 436eed89..d6a554d7 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251104205840_DynamicService.Designer.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251105082644_Initial.Designer.cs @@ -13,8 +13,8 @@ using Volo.Abp.EntityFrameworkCore; namespace Kurs.Platform.Migrations { [DbContext(typeof(PlatformDbContext))] - [Migration("20251104205840_DynamicService")] - partial class DynamicService + [Migration("20251105082644_Initial")] + partial class Initial { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -802,143 +802,6 @@ namespace Kurs.Platform.Migrations b.ToTable("Net_T_Announcement", (string)null); }); - modelBuilder.Entity("Kurs.Platform.Entities.ApiEndpoint", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CsharpCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EntityId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - 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("Method") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("OperationType") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.ToTable("Sas_T_ApiEndpoint", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ApiMigration", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AppliedAt") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntityId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ErrorMessage") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SqlScript") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.ToTable("Sas_T_ApiMigration", (string)null); - }); - modelBuilder.Entity("Kurs.Platform.Entities.BackgroundWorker", b => { b.Property("Id") @@ -2681,6 +2544,143 @@ namespace Kurs.Platform.Migrations b.ToTable("Sas_H_CountryGroup", (string)null); }); + modelBuilder.Entity("Kurs.Platform.Entities.CrudEndpoint", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("CsharpCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("EntityId") + .HasColumnType("uniqueidentifier"); + + b.Property("EntityName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + 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("Method") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("nvarchar(10)"); + + b.Property("OperationType") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Path") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("EntityId"); + + b.ToTable("Sas_T_CrudEndpoint", (string)null); + }); + + modelBuilder.Entity("Kurs.Platform.Entities.CrudMigration", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("AppliedAt") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("EntityId") + .HasColumnType("uniqueidentifier"); + + b.Property("EntityName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("ErrorMessage") + .HasMaxLength(1000) + .HasColumnType("nvarchar(1000)"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("SqlScript") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("EntityId"); + + b.ToTable("Sas_T_ApiMigration", (string)null); + }); + modelBuilder.Entity("Kurs.Platform.Entities.Currency", b => { b.Property("Id") @@ -12468,28 +12468,6 @@ namespace Kurs.Platform.Migrations b.Navigation("Employee"); }); - modelBuilder.Entity("Kurs.Platform.Entities.ApiEndpoint", b => - { - b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity") - .WithMany() - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Entity"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ApiMigration", b => - { - b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity") - .WithMany() - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Entity"); - }); - modelBuilder.Entity("Kurs.Platform.Entities.BankAccount", b => { b.HasOne("Kurs.Platform.Entities.Bank", "Bank") @@ -12656,6 +12634,28 @@ namespace Kurs.Platform.Migrations .OnDelete(DeleteBehavior.Restrict); }); + modelBuilder.Entity("Kurs.Platform.Entities.CrudEndpoint", b => + { + b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity") + .WithMany() + .HasForeignKey("EntityId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Entity"); + }); + + modelBuilder.Entity("Kurs.Platform.Entities.CrudMigration", b => + { + b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity") + .WithMany() + .HasForeignKey("EntityId") + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Entity"); + }); + modelBuilder.Entity("Kurs.Platform.Entities.CustomEntityField", b => { b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity") diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251104135444_Initial.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251105082644_Initial.cs similarity index 99% rename from api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251104135444_Initial.cs rename to api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251105082644_Initial.cs index bb1532bc..eb6a85cd 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251104135444_Initial.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251105082644_Initial.cs @@ -1477,6 +1477,37 @@ namespace Kurs.Platform.Migrations table.UniqueConstraint("AK_Plat_H_BackgroundWorker_MailQueueTableFormat_TableName", x => x.TableName); }); + migrationBuilder.CreateTable( + name: "Plat_H_DynamicService", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + DisplayName = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Description = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Code = table.Column(type: "text", nullable: false), + IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), + CompilationStatus = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + LastCompilationError = table.Column(type: "text", nullable: true), + LastSuccessfulCompilation = table.Column(type: "datetime2", nullable: true), + Version = table.Column(type: "int", nullable: false, defaultValue: 1), + CodeHash = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PrimaryEntityType = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ControllerName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Plat_H_DynamicService", x => x.Id); + }); + migrationBuilder.CreateTable( name: "Plat_H_Language", columns: table => new @@ -3405,38 +3436,6 @@ namespace Kurs.Platform.Migrations onDelete: ReferentialAction.Restrict); }); - migrationBuilder.CreateTable( - name: "Sas_T_ApiEndpoint", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - EntityName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Method = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), - Path = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - OperationType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - CsharpCode = table.Column(type: "nvarchar(max)", nullable: false), - IsActive = table.Column(type: "bit", nullable: false), - EntityId = table.Column(type: "uniqueidentifier", 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_Sas_T_ApiEndpoint", x => x.Id); - table.ForeignKey( - name: "FK_Sas_T_ApiEndpoint_Sas_T_CustomEntity_EntityId", - column: x => x.EntityId, - principalTable: "Sas_T_CustomEntity", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( name: "Sas_T_ApiMigration", columns: table => new @@ -3466,6 +3465,38 @@ namespace Kurs.Platform.Migrations onDelete: ReferentialAction.Restrict); }); + migrationBuilder.CreateTable( + name: "Sas_T_CrudEndpoint", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + EntityName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Method = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + Path = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + OperationType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + CsharpCode = table.Column(type: "nvarchar(max)", nullable: false), + IsActive = table.Column(type: "bit", nullable: false), + EntityId = table.Column(type: "uniqueidentifier", 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_Sas_T_CrudEndpoint", x => x.Id); + table.ForeignKey( + name: "FK_Sas_T_CrudEndpoint_Sas_T_CustomEntity_EntityId", + column: x => x.EntityId, + principalTable: "Sas_T_CustomEntity", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + migrationBuilder.CreateTable( name: "Sas_T_CustomEntityField", columns: table => new @@ -5989,11 +6020,6 @@ namespace Kurs.Platform.Migrations column: "Key", unique: true); - migrationBuilder.CreateIndex( - name: "IX_Sas_T_ApiEndpoint_EntityId", - table: "Sas_T_ApiEndpoint", - column: "EntityId"); - migrationBuilder.CreateIndex( name: "IX_Sas_T_ApiMigration_EntityId", table: "Sas_T_ApiMigration", @@ -6004,6 +6030,11 @@ namespace Kurs.Platform.Migrations table: "Sas_T_BranchUsers", column: "BranchId"); + migrationBuilder.CreateIndex( + name: "IX_Sas_T_CrudEndpoint_EntityId", + table: "Sas_T_CrudEndpoint", + column: "EntityId"); + migrationBuilder.CreateIndex( name: "IX_Sas_T_CustomEntityField_EntityId", table: "Sas_T_CustomEntityField", @@ -6339,6 +6370,9 @@ namespace Kurs.Platform.Migrations migrationBuilder.DropTable( name: "Plat_H_BackgroundWorker_MailQueueEvents"); + migrationBuilder.DropTable( + name: "Plat_H_DynamicService"); + migrationBuilder.DropTable( name: "Plat_H_LanguageText"); @@ -6402,15 +6436,15 @@ namespace Kurs.Platform.Migrations migrationBuilder.DropTable( name: "Sas_T_Activity"); - migrationBuilder.DropTable( - name: "Sas_T_ApiEndpoint"); - migrationBuilder.DropTable( name: "Sas_T_ApiMigration"); migrationBuilder.DropTable( name: "Sas_T_BranchUsers"); + migrationBuilder.DropTable( + name: "Sas_T_CrudEndpoint"); + migrationBuilder.DropTable( name: "Sas_T_CustomComponent"); diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs index 70b50b63..4a31110f 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs @@ -799,143 +799,6 @@ namespace Kurs.Platform.Migrations b.ToTable("Net_T_Announcement", (string)null); }); - modelBuilder.Entity("Kurs.Platform.Entities.ApiEndpoint", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CsharpCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EntityId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - 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("Method") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("nvarchar(10)"); - - b.Property("OperationType") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Path") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.ToTable("Sas_T_ApiEndpoint", (string)null); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ApiMigration", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AppliedAt") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntityId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ErrorMessage") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SqlScript") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityId"); - - b.ToTable("Sas_T_ApiMigration", (string)null); - }); - modelBuilder.Entity("Kurs.Platform.Entities.BackgroundWorker", b => { b.Property("Id") @@ -2678,6 +2541,143 @@ namespace Kurs.Platform.Migrations b.ToTable("Sas_H_CountryGroup", (string)null); }); + modelBuilder.Entity("Kurs.Platform.Entities.CrudEndpoint", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("CsharpCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("EntityId") + .HasColumnType("uniqueidentifier"); + + b.Property("EntityName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + 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("Method") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("nvarchar(10)"); + + b.Property("OperationType") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Path") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("EntityId"); + + b.ToTable("Sas_T_CrudEndpoint", (string)null); + }); + + modelBuilder.Entity("Kurs.Platform.Entities.CrudMigration", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("AppliedAt") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("EntityId") + .HasColumnType("uniqueidentifier"); + + b.Property("EntityName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("ErrorMessage") + .HasMaxLength(1000) + .HasColumnType("nvarchar(1000)"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("SqlScript") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("EntityId"); + + b.ToTable("Sas_T_ApiMigration", (string)null); + }); + modelBuilder.Entity("Kurs.Platform.Entities.Currency", b => { b.Property("Id") @@ -12465,28 +12465,6 @@ namespace Kurs.Platform.Migrations b.Navigation("Employee"); }); - modelBuilder.Entity("Kurs.Platform.Entities.ApiEndpoint", b => - { - b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity") - .WithMany() - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Entity"); - }); - - modelBuilder.Entity("Kurs.Platform.Entities.ApiMigration", b => - { - b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity") - .WithMany() - .HasForeignKey("EntityId") - .OnDelete(DeleteBehavior.Restrict) - .IsRequired(); - - b.Navigation("Entity"); - }); - modelBuilder.Entity("Kurs.Platform.Entities.BankAccount", b => { b.HasOne("Kurs.Platform.Entities.Bank", "Bank") @@ -12653,6 +12631,28 @@ namespace Kurs.Platform.Migrations .OnDelete(DeleteBehavior.Restrict); }); + modelBuilder.Entity("Kurs.Platform.Entities.CrudEndpoint", b => + { + b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity") + .WithMany() + .HasForeignKey("EntityId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Entity"); + }); + + modelBuilder.Entity("Kurs.Platform.Entities.CrudMigration", b => + { + b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity") + .WithMany() + .HasForeignKey("EntityId") + .OnDelete(DeleteBehavior.Restrict) + .IsRequired(); + + b.Navigation("Entity"); + }); + modelBuilder.Entity("Kurs.Platform.Entities.CustomEntityField", b => { b.HasOne("Kurs.Platform.Entities.CustomEntity", "Entity") diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Tenants/Seeds/TenantData.json b/api/src/Kurs.Platform.EntityFrameworkCore/Tenants/Seeds/TenantData.json index 67051ef4..3bd33fba 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Tenants/Seeds/TenantData.json +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Tenants/Seeds/TenantData.json @@ -88,7 +88,7 @@ "CustomComponents": [ { "name": "DynamicEntityComponent", - "code": "import React, { useEffect, useState } from \"react\";\nimport axios from \"axios\";\n\ninterface DynamicEntityComponentProps {\n title: string;\n}\n\nconst api = axios.create({\n baseURL: \"https://localhost:44344\", // defaults'ı her seferinde set etme\n});\n\nconst DynamicEntityComponent: React.FC = ({ title }) => {\n const [data, setData] = useState>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState(null);\n\n useEffect(() => {\n const fetchData = async () => {\n setLoading(true);\n setError(null);\n\n try {\n const res = await api.get(`/api/app/dynamic/${title}`);\n const raw = Array.isArray(res.data) ? res.data : res.data?.items ?? [];\n\n const filtered = raw.map((item: any) => ({\n id: item.Id ?? item.id,\n name: item.Name ?? item.name,\n }));\n\n setData(filtered);\n } catch (err: any) {\n setError(err.message || \"Failed to fetch data\");\n } finally {\n setLoading(false);\n }\n };\n\n if (title) fetchData();\n }, [title]);\n\n if (loading) return
Loading...
;\n if (error) return
Error: {error}
;\n if (!data.length) return
No records found
;\n\n const headers = [\"id\", \"name\", \"actions\"];\n\n return (\n
\n \n \n \n {headers.map((key) => (\n \n {key === \"actions\" ? \"Actions\" : key}\n \n ))}\n \n \n \n {data.map((item, rowIndex) => (\n \n \n \n \n \n ))}\n \n
\n {item.id}\n \n {item.name}\n \n alert(item.name)}\n className=\"bg-blue-600 hover:bg-blue-700 text-white text-sm px-3 py-1 rounded-lg shadow-sm transition\"\n >\n Show Name\n \n
\n
\n );\n};\n\nexport default DynamicEntityComponent;", + "code": "import React, { useEffect, useState } from \"react\";\nimport axios from \"axios\";\n\ninterface DynamicEntityComponentProps {\n title: string;\n}\n\nconst api = axios.create({\n baseURL: \"https://localhost:44344\", // defaults'ı her seferinde set etme\n});\n\nconst DynamicEntityComponent: React.FC = ({ title }) => {\n const [data, setData] = useState>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState(null);\n\n useEffect(() => {\n const fetchData = async () => {\n setLoading(true);\n setError(null);\n\n try {\n const res = await api.get(`/api/app/crudendpoint/${title}`);\n const raw = Array.isArray(res.data) ? res.data : res.data?.items ?? [];\n\n const filtered = raw.map((item: any) => ({\n id: item.Id ?? item.id,\n name: item.Name ?? item.name,\n }));\n\n setData(filtered);\n } catch (err: any) {\n setError(err.message || \"Failed to fetch data\");\n } finally {\n setLoading(false);\n }\n };\n\n if (title) fetchData();\n }, [title]);\n\n if (loading) return
Loading...
;\n if (error) return
Error: {error}
;\n if (!data.length) return
No records found
;\n\n const headers = [\"id\", \"name\", \"actions\"];\n\n return (\n
\n \n \n \n {headers.map((key) => (\n \n {key === \"actions\" ? \"Actions\" : key}\n \n ))}\n \n \n \n {data.map((item, rowIndex) => (\n \n \n \n \n \n ))}\n \n
\n {item.id}\n \n {item.name}\n \n alert(item.name)}\n className=\"bg-blue-600 hover:bg-blue-700 text-white text-sm px-3 py-1 rounded-lg shadow-sm transition\"\n >\n Show Name\n \n
\n
\n );\n};\n\nexport default DynamicEntityComponent;", "props": null, "description": null, "isActive": true, diff --git a/ui/src/components/developerKit/ComponentManager.tsx b/ui/src/components/developerKit/ComponentManager.tsx index ed1eb5a3..3dd87b05 100644 --- a/ui/src/components/developerKit/ComponentManager.tsx +++ b/ui/src/components/developerKit/ComponentManager.tsx @@ -92,7 +92,7 @@ const ComponentManager: React.FC = () => {

- {translate('::App.DeveloperKit.Component.Title')} + {translate('::App.DeveloperKit.Component')}

{translate('::App.DeveloperKit.Component.Description')}

diff --git a/ui/src/components/developerKit/EndpointManager.tsx b/ui/src/components/developerKit/CrudEndpointManager.tsx similarity index 99% rename from ui/src/components/developerKit/EndpointManager.tsx rename to ui/src/components/developerKit/CrudEndpointManager.tsx index 60b3a8c9..bec60041 100644 --- a/ui/src/components/developerKit/EndpointManager.tsx +++ b/ui/src/components/developerKit/CrudEndpointManager.tsx @@ -45,7 +45,7 @@ interface ParameterInput { description?: string } -const EndpointManager: React.FC = () => { +const CrudEndpointManager: React.FC = () => { const { generatedEndpoints } = useEntities() const { translate } = useLocalization() @@ -271,8 +271,8 @@ const EndpointManager: React.FC = () => { const method = endpoint.method let data = null - // For generated endpoints, use the Dynamic API - url = `${import.meta.env.VITE_API_URL}/api/app/Dynamic/${endpoint.entityName}` + // For generated endpoints, use the Crud API + url = `${import.meta.env.VITE_API_URL}/api/app/crudendpoint/${endpoint.entityName}` // Get parameters and modify URL based on operation type const parameters = getEndpointParameters(endpoint) @@ -370,7 +370,7 @@ const EndpointManager: React.FC = () => {

- {translate('::App.DeveloperKit.Endpoint.Title')} + {translate('::App.DeveloperKit.CrudEndpoints')}

{translate('::App.DeveloperKit.Endpoint.Description')}

@@ -791,4 +791,4 @@ const EndpointManager: React.FC = () => { ) } -export default EndpointManager +export default CrudEndpointManager diff --git a/ui/src/components/developerKit/Dashboard.tsx b/ui/src/components/developerKit/Dashboard.tsx index 7282bd6e..d305706d 100644 --- a/ui/src/components/developerKit/Dashboard.tsx +++ b/ui/src/components/developerKit/Dashboard.tsx @@ -55,7 +55,7 @@ const Dashboard: React.FC = () => { href: ROUTES_ENUM.protected.saas.developerKit.endpoints, }, { - name: translate('::App.DeveloperKit.Dashboard.Stats.Components'), + name: translate('::App.DeveloperKit.Components'), value: components?.filter((c) => c.isActive).length, total: components?.length, icon: FaPuzzlePiece, diff --git a/ui/src/components/developerKit/EntityEditor.tsx b/ui/src/components/developerKit/EntityEditor.tsx index 521755bd..c5a8ca71 100644 --- a/ui/src/components/developerKit/EntityEditor.tsx +++ b/ui/src/components/developerKit/EntityEditor.tsx @@ -16,7 +16,7 @@ import { ROUTES_ENUM } from '@/routes/route.constant' import { useLocalization } from '@/utils/hooks/useLocalization' import { Formik, Form, Field, FieldProps, FieldArray } from 'formik' import * as Yup from 'yup' -import { FormItem, Input, Select, Checkbox, FormContainer } from '@/components/ui' +import { FormItem, Input, Select, Checkbox, FormContainer, Button } from '@/components/ui' import { SelectBoxOption } from '@/shared/types' // Validation schema @@ -152,12 +152,12 @@ const EntityEditor: React.FC = () => { } const fieldTypes = [ - { value: 'string', label: 'String (Text)' }, - { value: 'number', label: 'Number (Integer)' }, + { value: 'string', label: 'String' }, + { value: 'number', label: 'Number' }, { value: 'decimal', label: 'Decimal' }, - { value: 'boolean', label: 'Boolean (True/False)' }, + { value: 'boolean', label: 'Boolean' }, { value: 'date', label: 'Date' }, - { value: 'guid', label: 'GUID (Unique ID)' }, + { value: 'guid', label: 'Guid' }, ] return ( @@ -218,7 +218,7 @@ const EntityEditor: React.FC = () => {
-
+ {/* Basic Entity Information */}
@@ -309,7 +309,7 @@ const EntityEditor: React.FC = () => {
{/* Fields Section */} -
+
@@ -345,15 +345,50 @@ const EntityEditor: React.FC = () => {
+
+
Order *
+ +
+ {translate('::App.DeveloperKit.EntityEditor.FieldName')} * +
+ +
+ {translate('::App.DeveloperKit.EntityEditor.Type')} * +
+ +
+ {translate('::App.DeveloperKit.EntityEditor.DefaultValue')} +
+ +
+ {translate('::App.DeveloperKit.EntityEditor.MaxLength')} +
+ +
+ {translate('::App.DeveloperKit.EntityEditor.Description')} +
+ +
+ {translate('::App.DeveloperKit.EntityEditor.Required')} +
+ +
+ {translate('::App.DeveloperKit.EntityEditor.Unique')} +
+
+ {values.fields.map((field, index) => (
-
- - +
+ + { { { /> - {field.type === 'string' && ( - - - - )} + + + { errorMessage={ (errors.fields as any)?.[index]?.description as string } - className={field.type === 'string' ? 'col-span-2' : 'col-span-3'} + className="col-span-2" > { /> - + - + - +
))} diff --git a/ui/src/components/developerKit/EntityManager.tsx b/ui/src/components/developerKit/EntityManager.tsx index 93004bea..0b54891a 100644 --- a/ui/src/components/developerKit/EntityManager.tsx +++ b/ui/src/components/developerKit/EntityManager.tsx @@ -89,7 +89,7 @@ const EntityManager: React.FC = () => {

- {translate('::App.DeveloperKit.Entity.Title')} + {translate('::App.DeveloperKit.Entity')}

{translate('::App.DeveloperKit.Entity.Description')}

diff --git a/ui/src/components/developerKit/MigrationManager.tsx b/ui/src/components/developerKit/MigrationManager.tsx index 7ac0ca8e..6e59cf54 100644 --- a/ui/src/components/developerKit/MigrationManager.tsx +++ b/ui/src/components/developerKit/MigrationManager.tsx @@ -163,7 +163,7 @@ const MigrationManager: React.FC = () => {

- {translate('::App.DeveloperKit.Migration.Title')} + {translate('::App.DeveloperKit.Migration')}

{translate('::App.DeveloperKit.Migration.Description')}

diff --git a/ui/src/components/layouts/DeveloperLayout.tsx b/ui/src/components/layouts/DeveloperLayout.tsx index a2b29eb6..676600fb 100644 --- a/ui/src/components/layouts/DeveloperLayout.tsx +++ b/ui/src/components/layouts/DeveloperLayout.tsx @@ -35,7 +35,7 @@ const DeveloperLayout: React.FC = ({ children }) => { }, { id: 'endpoints', - label: translate('::App.DeveloperKit.Endpoints'), + label: translate('::App.DeveloperKit.CrudEndpoints'), icon: FaServer, path: ROUTES_ENUM.protected.saas.developerKit.endpoints, }, diff --git a/ui/src/contexts/EntityContext.tsx b/ui/src/contexts/EntityContext.tsx index 6661323a..b81ba8e0 100644 --- a/ui/src/contexts/EntityContext.tsx +++ b/ui/src/contexts/EntityContext.tsx @@ -2,7 +2,7 @@ import React, { createContext, useContext, useState, useEffect } from "react"; import { developerKitService, } from "@/services/developerKit.service"; -import { ApiEndpoint, ApiMigration, CreateUpdateCustomEntityDto, CustomEntity } from "@/proxy/developerKit/models"; +import { CrudEndpoint, ApiMigration, CreateUpdateCustomEntityDto, CustomEntity } from "@/proxy/developerKit/models"; export const FIELD_TYPE_OPTIONS = [ { label: "String", value: "string" }, @@ -18,7 +18,7 @@ export type EntityFieldType = (typeof FIELD_TYPE_OPTIONS)[number]["value"]; interface EntityContextType { entities: CustomEntity[]; migrations: ApiMigration[]; - generatedEndpoints: ApiEndpoint[]; + generatedEndpoints: CrudEndpoint[]; loading: boolean; error: string | null; // Entity operations @@ -36,7 +36,7 @@ interface EntityContextType { // Generated endpoint operations generateCrudEndpoints: (entityId: string) => Promise; toggleEndpoint: (endpointId: string) => Promise; - getEntityEndpoints: (entityId: string) => ApiEndpoint[]; + getEntityEndpoints: (entityId: string) => CrudEndpoint[]; deleteGeneratedEndpoint: (id: string) => Promise; } @@ -59,7 +59,7 @@ export const EntityProvider: React.FC<{ children: React.ReactNode }> = ({ const [error, setError] = useState(null); const [migrations, setMigrations] = useState([]); - const [generatedEndpoints, setGeneratedEndpoints] = useState([]); + const [generatedEndpoints, setGeneratedEndpoints] = useState([]); const refreshEntities = async () => { try { @@ -257,7 +257,7 @@ export const EntityProvider: React.FC<{ children: React.ReactNode }> = ({ } }; - const getEntityEndpoints = (entityId: string): ApiEndpoint[] => { + const getEntityEndpoints = (entityId: string): CrudEndpoint[] => { return generatedEndpoints.filter((endpoint) => endpoint.entityId === entityId); }; diff --git a/ui/src/proxy/developerKit/models.ts b/ui/src/proxy/developerKit/models.ts index 677a564a..dd2f52af 100644 --- a/ui/src/proxy/developerKit/models.ts +++ b/ui/src/proxy/developerKit/models.ts @@ -53,7 +53,7 @@ export interface CreateUpdateCustomEntityDto { fields: CreateUpdateCustomEntityFieldDto[]; } -export interface ApiEndpoint { +export interface CrudEndpoint { id: string; entityId: string; entityName: string; @@ -66,7 +66,7 @@ export interface ApiEndpoint { lastModificationTime?: string; } -export interface CreateUpdateApiEndpointDto { +export interface CreateUpdateCrudEndpointDto { entityId: string; entityName: string; method: "GET" | "POST" | "PUT" | "DELETE"; diff --git a/ui/src/services/developerKit.service.ts b/ui/src/services/developerKit.service.ts index 6fc39545..472fae92 100644 --- a/ui/src/services/developerKit.service.ts +++ b/ui/src/services/developerKit.service.ts @@ -1,9 +1,9 @@ import { PagedResultDto } from '@/proxy' import apiService from './api.service' import { - ApiEndpoint, + CrudEndpoint, ApiMigration, - CreateUpdateApiEndpointDto, + CreateUpdateCrudEndpointDto, CreateUpdateApiMigrationDto, CreateUpdateCustomComponentDto, CreateUpdateCustomEntityDto, @@ -125,7 +125,7 @@ class DeveloperKitService { // Migration endpoints async getMigrations(): Promise> { const response = await apiService.fetchData>({ - url: '/api/app/api-migration', + url: '/api/app/crud-migration', method: 'GET', }) return response.data @@ -133,7 +133,7 @@ class DeveloperKitService { async getMigration(id: string): Promise { const response = await apiService.fetchData({ - url: `/api/app/api-migration/${id}`, + url: `/api/app/crud-migration/${id}`, method: 'GET', }) return response.data @@ -141,7 +141,7 @@ class DeveloperKitService { async createMigration(data: CreateUpdateApiMigrationDto): Promise { const response = await apiService.fetchData({ - url: '/api/app/api-migration', + url: '/api/app/crud-migration', method: 'POST', data: data as any, }) @@ -150,7 +150,7 @@ class DeveloperKitService { async updateMigration(id: string, data: CreateUpdateApiMigrationDto): Promise { const response = await apiService.fetchData({ - url: `/api/app/api-migration/${id}`, + url: `/api/app/crud-migration/${id}`, method: 'PUT', data: data as any, }) @@ -159,14 +159,14 @@ class DeveloperKitService { async deleteMigration(id: string): Promise { await apiService.fetchData({ - url: `/api/app/api-migration/${id}`, + url: `/api/app/crud-migration/${id}`, method: 'DELETE', }) } async applyMigration(id: string): Promise { const response = await apiService.fetchData({ - url: `/api/app/api-migration/${id}/apply-migration`, + url: `/api/app/crud-migration/${id}/apply-migration`, method: 'POST', }) return response.data @@ -174,7 +174,7 @@ class DeveloperKitService { async getPendingMigrations(): Promise> { const response = await apiService.fetchData>({ - url: '/api/app/api-migration/pending-migrations', + url: '/api/app/crud-migration/pending-migrations', method: 'GET', }) return response.data @@ -182,48 +182,48 @@ class DeveloperKitService { async generateMigration(entityId: string): Promise { const response = await apiService.fetchData({ - url: `/api/app/api-migration/generate-migration/${entityId}`, + url: `/api/app/crud-migration/generate-migration/${entityId}`, method: 'POST', }) return response.data } // Generated Endpoint endpoints - async getGeneratedEndpoints(): Promise> { - const response = await apiService.fetchData>({ - url: '/api/app/api-endpoint', + async getGeneratedEndpoints(): Promise> { + const response = await apiService.fetchData>({ + url: '/api/app/crud-endpoint-generate', method: 'GET', }) return response.data } - async getActiveGeneratedEndpoints(): Promise> { - const response = await apiService.fetchData>({ - url: '/api/app/api-endpoint/active-endpoints', + async getActiveGeneratedEndpoints(): Promise> { + const response = await apiService.fetchData>({ + url: '/api/app/crud-endpoint-generate/active-endpoints', method: 'GET', }) return response.data } - async getEndpointsByEntity(entityId: string): Promise> { - const response = await apiService.fetchData>({ - url: `/api/app/api-endpoint/endpoints-by-entity/${entityId}`, + async getEndpointsByEntity(entityId: string): Promise> { + const response = await apiService.fetchData>({ + url: `/api/app/crud-endpoint-generate/endpoints-by-entity/${entityId}`, method: 'GET', }) return response.data } - async getGeneratedEndpoint(id: string): Promise { - const response = await apiService.fetchData({ - url: `/api/app/api-endpoint/${id}`, + async getGeneratedEndpoint(id: string): Promise { + const response = await apiService.fetchData({ + url: `/api/app/crud-endpoint-generate/${id}`, method: 'GET', }) return response.data } - async createGeneratedEndpoint(data: CreateUpdateApiEndpointDto): Promise { - const response = await apiService.fetchData({ - url: '/api/app/api-endpoint', + async createGeneratedEndpoint(data: CreateUpdateCrudEndpointDto): Promise { + const response = await apiService.fetchData({ + url: '/api/app/crud-endpoint-generate', method: 'POST', data: data as any, }) @@ -232,10 +232,10 @@ class DeveloperKitService { async updateGeneratedEndpoint( id: string, - endpoint: CreateUpdateApiEndpointDto, - ): Promise { - const response = await apiService.fetchData({ - url: `/api/app/api-endpoint/${id}`, + endpoint: CreateUpdateCrudEndpointDto, + ): Promise { + const response = await apiService.fetchData({ + url: `/api/app/crud-endpoint-generate/${id}`, method: 'PUT', data: endpoint as any, }) @@ -244,22 +244,22 @@ class DeveloperKitService { async deleteGeneratedEndpoint(id: string): Promise { await apiService.fetchData({ - url: `/api/app/api-endpoint/${id}`, + url: `/api/app/crud-endpoint-generate/${id}`, method: 'DELETE', }) } - async toggleGeneratedEndpoint(id: string): Promise { - const response = await apiService.fetchData({ - url: `/api/app/api-endpoint/${id}/toggle`, + async toggleGeneratedEndpoint(id: string): Promise { + const response = await apiService.fetchData({ + url: `/api/app/crud-endpoint-generate/${id}/toggle`, method: 'POST', }) return response.data } - async generateCrudEndpoints(entityId: string): Promise> { - const response = await apiService.fetchData>({ - url: `/api/app/api-endpoint/generate-crud-endpoints/${entityId}`, + async generateCrudEndpoints(entityId: string): Promise> { + const response = await apiService.fetchData>({ + url: `/api/app/crud-endpoint-generate/generate-crud-endpoints/${entityId}`, method: 'POST', }) return response.data diff --git a/ui/src/utils/hooks/useDeveloperKit.ts b/ui/src/utils/hooks/useDeveloperKit.ts index 79457c02..fa398ceb 100644 --- a/ui/src/utils/hooks/useDeveloperKit.ts +++ b/ui/src/utils/hooks/useDeveloperKit.ts @@ -1,5 +1,6 @@ +import { ApiMigration, CrudEndpoint, CustomEntity } from '@/proxy/developerKit/models'; +import { developerKitService } from '@/services/developerKit.service'; import { useState, useEffect } from 'react'; -import { developerKitService, CustomEntity, ApiMigration, ApiEndpoint } from '../../services/developerKit.service'; export const useEntities = () => { const [entities, setEntities] = useState([]); @@ -62,7 +63,7 @@ export const useMigrations = () => { }; export const useGeneratedEndpoints = () => { - const [endpoints, setEndpoints] = useState([]); + const [endpoints, setEndpoints] = useState([]); const [loading, setLoading] = useState(true); const [error, setError] = useState(null); diff --git a/ui/src/views/developerKit/EndpointPage.tsx b/ui/src/views/developerKit/CrudEndpointPage.tsx similarity index 58% rename from ui/src/views/developerKit/EndpointPage.tsx rename to ui/src/views/developerKit/CrudEndpointPage.tsx index 0fdd84d9..43ca7f97 100644 --- a/ui/src/views/developerKit/EndpointPage.tsx +++ b/ui/src/views/developerKit/CrudEndpointPage.tsx @@ -1,16 +1,16 @@ import React from 'react' import { EntityProvider } from '@/contexts/EntityContext' import DeveloperLayout from '@/components/layouts/DeveloperLayout' -import EndpointManager from '@/components/developerKit/EndpointManager' +import CrudEndpointManager from '@/components/developerKit/CrudEndpointManager' -const EndpointPage: React.FC = () => { +const CrudEndpointPage: React.FC = () => { return ( - + ) } -export default EndpointPage +export default CrudEndpointPage