diff --git a/api/modules/Sozsoft.Settings/Sozsoft.Settings.Domain.Shared/SettingsConsts.cs b/api/modules/Sozsoft.Settings/Sozsoft.Settings.Domain.Shared/SettingsConsts.cs index 1fdc072..85b60e9 100644 --- a/api/modules/Sozsoft.Settings/Sozsoft.Settings.Domain.Shared/SettingsConsts.cs +++ b/api/modules/Sozsoft.Settings/Sozsoft.Settings.Domain.Shared/SettingsConsts.cs @@ -15,7 +15,7 @@ public static class SettingsConsts public const string FormNamePrefix = "Setting_"; - public const string DefaultDatabaseProvider = DatabaseProvider.PostgreSql; + public const string DefaultDatabaseProvider = DatabaseProvider.SqlServer; public static class DatabaseProvider { diff --git a/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260525115708_Initial.cs b/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260525115708_Initial.cs deleted file mode 100644 index b762e6e..0000000 --- a/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260525115708_Initial.cs +++ /dev/null @@ -1,4425 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; - -#nullable disable - -namespace Sozsoft.Platform.Migrations -{ - /// - public partial class Initial : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "AbpAuditLogExcelFiles", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - FileName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpAuditLogExcelFiles", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpAuditLogs", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - ApplicationName = table.Column(type: "character varying(96)", maxLength: 96, nullable: true, collation: "tr-x-icu"), - UserId = table.Column(type: "uuid", nullable: true), - UserName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - TenantId = table.Column(type: "uuid", nullable: true), - TenantName = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - ImpersonatorUserId = table.Column(type: "uuid", nullable: true), - ImpersonatorUserName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - ImpersonatorTenantId = table.Column(type: "uuid", nullable: true), - ImpersonatorTenantName = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - ExecutionTime = table.Column(type: "timestamp with time zone", nullable: false), - ExecutionDuration = table.Column(type: "integer", nullable: false), - ClientIpAddress = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - ClientName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - ClientId = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - CorrelationId = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - BrowserInfo = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - HttpMethod = table.Column(type: "character varying(16)", maxLength: 16, nullable: true, collation: "tr-x-icu"), - Url = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - Exceptions = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Comments = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - HttpStatusCode = table.Column(type: "integer", nullable: true), - ExtraProperties = table.Column(type: "text", nullable: false), - ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: false, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpAuditLogs", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpBackgroundJobs", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - ApplicationName = table.Column(type: "character varying(96)", maxLength: 96, nullable: true, collation: "tr-x-icu"), - JobName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - JobArgs = table.Column(type: "character varying(1048576)", maxLength: 1048576, nullable: false, collation: "tr-x-icu"), - TryCount = table.Column(type: "smallint", nullable: false, defaultValue: (short)0), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - NextTryTime = table.Column(type: "timestamp with time zone", nullable: false), - LastTryTime = table.Column(type: "timestamp with time zone", nullable: true), - IsAbandoned = table.Column(type: "boolean", nullable: false, defaultValue: false), - Priority = table.Column(type: "smallint", nullable: false, defaultValue: (byte)15), - ExtraProperties = table.Column(type: "text", nullable: false), - ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: false, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpBackgroundJobs", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpClaimTypes", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Required = table.Column(type: "boolean", nullable: false), - IsStatic = table.Column(type: "boolean", nullable: false), - Regex = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - RegexDescription = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - ValueType = table.Column(type: "integer", nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - ExtraProperties = table.Column(type: "text", nullable: false), - ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: false, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpClaimTypes", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpFeatureGroups", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - DisplayName = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - ExtraProperties = table.Column(type: "text", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpFeatureGroups", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpFeatures", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - GroupName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - ParentName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - DisplayName = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - DefaultValue = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - IsVisibleToClients = table.Column(type: "boolean", nullable: false), - IsAvailableToHost = table.Column(type: "boolean", nullable: false), - AllowedProviders = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - ValueType = table.Column(type: "character varying(2048)", maxLength: 2048, nullable: true, collation: "tr-x-icu"), - ExtraProperties = table.Column(type: "text", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpFeatures", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpFeatureValues", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Value = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - ProviderName = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - ProviderKey = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpFeatureValues", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpLinkUsers", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - SourceUserId = table.Column(type: "uuid", nullable: false), - SourceTenantId = table.Column(type: "uuid", nullable: true), - TargetUserId = table.Column(type: "uuid", nullable: false), - TargetTenantId = table.Column(type: "uuid", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpLinkUsers", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpOrganizationUnits", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - ParentId = table.Column(type: "uuid", nullable: true), - Code = table.Column(type: "character varying(95)", maxLength: 95, nullable: false, collation: "tr-x-icu"), - DisplayName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - EntityVersion = table.Column(type: "integer", nullable: false), - ExtraProperties = table.Column(type: "text", nullable: false), - ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id); - table.ForeignKey( - name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId", - column: x => x.ParentId, - principalTable: "AbpOrganizationUnits", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "AbpPermissionGrants", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - ProviderName = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - ProviderKey = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpPermissionGrants", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpPermissionGroups", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - DisplayName = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - ExtraProperties = table.Column(type: "text", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpPermissionGroups", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpPermissions", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - GroupName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - ParentName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - DisplayName = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - IsEnabled = table.Column(type: "boolean", nullable: false), - MultiTenancySide = table.Column(type: "smallint", nullable: false), - Providers = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - StateCheckers = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - ExtraProperties = table.Column(type: "text", nullable: true), - MenuGroup = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpPermissions", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpRoles", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - NormalizedName = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - IsDefault = table.Column(type: "boolean", nullable: false), - IsStatic = table.Column(type: "boolean", nullable: false), - IsPublic = table.Column(type: "boolean", nullable: false), - EntityVersion = table.Column(type: "integer", nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - ExtraProperties = table.Column(type: "text", nullable: false), - ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: false, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpRoles", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpSecurityLogs", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - ApplicationName = table.Column(type: "character varying(96)", maxLength: 96, nullable: true, collation: "tr-x-icu"), - Identity = table.Column(type: "character varying(96)", maxLength: 96, nullable: true, collation: "tr-x-icu"), - Action = table.Column(type: "character varying(96)", maxLength: 96, nullable: true, collation: "tr-x-icu"), - UserId = table.Column(type: "uuid", nullable: true), - UserName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - TenantName = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - ClientId = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - CorrelationId = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - ClientIpAddress = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - BrowserInfo = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - ExtraProperties = table.Column(type: "text", nullable: false), - ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: false, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpSecurityLogs", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpSessions", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - SessionId = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Device = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - DeviceInfo = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - TenantId = table.Column(type: "uuid", nullable: true), - UserId = table.Column(type: "uuid", nullable: false), - ClientId = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - IpAddresses = table.Column(type: "character varying(2048)", maxLength: 2048, nullable: true, collation: "tr-x-icu"), - SignedIn = table.Column(type: "timestamp with time zone", nullable: false), - LastAccessed = table.Column(type: "timestamp with time zone", nullable: true), - ExtraProperties = table.Column(type: "text", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpSessions", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpSettingDefinitions", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - DisplayName = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - DefaultValue = table.Column(type: "character varying(2048)", maxLength: 2048, nullable: true, collation: "tr-x-icu"), - IsVisibleToClients = table.Column(type: "boolean", nullable: false), - Providers = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, collation: "tr-x-icu"), - IsInherited = table.Column(type: "boolean", nullable: false), - IsEncrypted = table.Column(type: "boolean", nullable: false), - ExtraProperties = table.Column(type: "text", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpSettingDefinitions", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpSettings", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Value = table.Column(type: "character varying(2048)", maxLength: 2048, nullable: false, collation: "tr-x-icu"), - ProviderName = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - ProviderKey = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpSettings", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpTenants", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - NormalizedName = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - EntityVersion = table.Column(type: "integer", nullable: false), - Address1 = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - Address2 = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - City = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Country = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - District = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Email = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - FaxNumber = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - Founder = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - IsActive = table.Column(type: "boolean", nullable: false, defaultValue: true), - MaxConcurrentUsers = table.Column(type: "integer", nullable: true, defaultValue: 0), - MenuGroup = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - MobileNumber = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - OrganizationName = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - PhoneNumber = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - PostalCode = table.Column(type: "character varying(10)", maxLength: 10, nullable: true, collation: "tr-x-icu"), - TaxOffice = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - Township = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - VknTckn = table.Column(type: "bigint", nullable: true), - Website = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - ExtraProperties = table.Column(type: "text", nullable: false), - ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpTenants", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpUserDelegations", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - SourceUserId = table.Column(type: "uuid", nullable: false), - TargetUserId = table.Column(type: "uuid", nullable: false), - StartTime = table.Column(type: "timestamp with time zone", nullable: false), - EndTime = table.Column(type: "timestamp with time zone", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserDelegations", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpUsers", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - UserName = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - NormalizedUserName = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - Surname = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - Email = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - NormalizedEmail = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - EmailConfirmed = table.Column(type: "boolean", nullable: false, defaultValue: false), - PasswordHash = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - SecurityStamp = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - IsExternal = table.Column(type: "boolean", nullable: false, defaultValue: false), - PhoneNumber = table.Column(type: "character varying(16)", maxLength: 16, nullable: true, collation: "tr-x-icu"), - PhoneNumberConfirmed = table.Column(type: "boolean", nullable: false, defaultValue: false), - IsActive = table.Column(type: "boolean", nullable: false), - TwoFactorEnabled = table.Column(type: "boolean", nullable: false, defaultValue: false), - LockoutEnd = table.Column(type: "timestamp with time zone", nullable: true), - LockoutEnabled = table.Column(type: "boolean", nullable: false, defaultValue: false), - AccessFailedCount = table.Column(type: "integer", nullable: false, defaultValue: 0), - ShouldChangePasswordOnNextLogin = table.Column(type: "boolean", nullable: false), - EntityVersion = table.Column(type: "integer", nullable: false), - LastPasswordChangeTime = table.Column(type: "timestamp with time zone", nullable: true), - BirthDate = table.Column(type: "timestamp with time zone", nullable: true), - BirthPlace = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - BloodType = table.Column(type: "character varying(16)", maxLength: 16, nullable: true, collation: "tr-x-icu"), - DepartmentId = table.Column(type: "uuid", nullable: false), - District = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - EducationLevel = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - FamilySequenceNo = table.Column(type: "character varying(32)", maxLength: 32, nullable: true, collation: "tr-x-icu"), - FatherName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - GraduationSchool = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - HireDate = table.Column(type: "timestamp with time zone", nullable: true), - HomeAddress = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - IdentityNumber = table.Column(type: "character varying(15)", maxLength: 15, nullable: true, collation: "tr-x-icu"), - IsVerified = table.Column(type: "boolean", nullable: false, defaultValue: false), - IssuedDate = table.Column(type: "timestamp with time zone", nullable: true), - IssuedPlace = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - JobPositionId = table.Column(type: "uuid", nullable: false), - LoginEndDate = table.Column(type: "timestamp with time zone", nullable: true), - MaritalStatus = table.Column(type: "character varying(32)", maxLength: 32, nullable: true, collation: "tr-x-icu"), - MarriageDate = table.Column(type: "timestamp with time zone", nullable: true), - MotherName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Nationality = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Province = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - RocketUsername = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - SequenceNo = table.Column(type: "character varying(32)", maxLength: 32, nullable: true, collation: "tr-x-icu"), - SerialNo = table.Column(type: "character varying(32)", maxLength: 32, nullable: true, collation: "tr-x-icu"), - SskNo = table.Column(type: "character varying(32)", maxLength: 32, nullable: true, collation: "tr-x-icu"), - TerminationDate = table.Column(type: "timestamp with time zone", nullable: true), - Village = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - VolumeNo = table.Column(type: "character varying(32)", maxLength: 32, nullable: true, collation: "tr-x-icu"), - WorkHour = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ExtraProperties = table.Column(type: "text", nullable: false), - ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUsers", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_Announcement", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Title = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Excerpt = table.Column(type: "character varying(512)", maxLength: 512, nullable: false, collation: "tr-x-icu"), - Content = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: false, collation: "tr-x-icu"), - ImageUrl = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Category = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - UserId = table.Column(type: "uuid", nullable: true), - PublishDate = table.Column(type: "timestamp with time zone", nullable: false), - ExpiryDate = table.Column(type: "timestamp with time zone", nullable: true), - IsPinned = table.Column(type: "boolean", nullable: false), - ViewCount = table.Column(type: "integer", nullable: false, defaultValue: 0), - Attachments = table.Column(type: "character varying(2048)", maxLength: 2048, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_Announcement", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_Department", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - ParentId = table.Column(type: "uuid", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_Department", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_EventCategory", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_EventCategory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_EventType", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_EventType", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_IpRestriction", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - ResourceType = table.Column(type: "character varying(10)", maxLength: 10, nullable: false, collation: "tr-x-icu"), - ResourceId = table.Column(type: "character varying(32)", maxLength: 32, nullable: true, collation: "tr-x-icu"), - IP = table.Column(type: "character varying(32)", maxLength: 32, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_IpRestriction", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_Note", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - EntityName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - EntityId = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - Type = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - Subject = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Content = table.Column(type: "character varying(2048)", maxLength: 2048, nullable: false, collation: "tr-x-icu"), - FilesJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_Note", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_ReportCategory", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true, collation: "tr-x-icu"), - Icon = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_ReportCategory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_Sector", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_Sector", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_Sequence", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - IsActive = table.Column(type: "boolean", nullable: false, defaultValue: true), - Prefix = table.Column(type: "character varying(32)", maxLength: 32, nullable: true, collation: "tr-x-icu"), - Suffix = table.Column(type: "character varying(32)", maxLength: 32, nullable: true, collation: "tr-x-icu"), - PaddingSize = table.Column(type: "integer", nullable: false, defaultValue: 6), - IncrementStep = table.Column(type: "integer", nullable: false, defaultValue: 1), - StartNumber = table.Column(type: "bigint", nullable: false), - NextNumber = table.Column(type: "bigint", nullable: false, defaultValue: 1L), - ResetPeriod = table.Column(type: "integer", nullable: false, defaultValue: 0), - LastPeriodKey = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - FormatTemplate = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, defaultValue: "{Prefix}{Number}{Suffix}", collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_Sequence", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_SocialPost", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - UserId = table.Column(type: "uuid", nullable: true), - Content = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: false, collation: "tr-x-icu"), - LikeCount = table.Column(type: "integer", nullable: false, defaultValue: 0), - IsLiked = table.Column(type: "boolean", nullable: false, defaultValue: false), - IsOwnPost = table.Column(type: "boolean", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_SocialPost", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_Survey", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Title = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(2048)", maxLength: 2048, nullable: true, collation: "tr-x-icu"), - Deadline = table.Column(type: "timestamp with time zone", nullable: false), - Responses = table.Column(type: "integer", nullable: false, defaultValue: 0), - Status = table.Column(type: "character varying(10)", maxLength: 10, nullable: false, collation: "tr-x-icu"), - IsAnonymous = table.Column(type: "boolean", nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_Survey", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_Videoroom", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - BranchId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, collation: "tr-x-icu"), - Subject = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - TeacherId = table.Column(type: "uuid", nullable: true), - TeacherName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - ScheduledStartTime = table.Column(type: "timestamp with time zone", nullable: false), - ScheduledEndTime = table.Column(type: "timestamp with time zone", nullable: true), - Duration = table.Column(type: "integer", nullable: false), - ActualStartTime = table.Column(type: "timestamp with time zone", nullable: true), - ActualEndTime = table.Column(type: "timestamp with time zone", nullable: true), - MaxParticipants = table.Column(type: "integer", nullable: false), - ParticipantCount = table.Column(type: "integer", nullable: false), - SettingsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_Videoroom", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_WorkHour", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - StartTime = table.Column(type: "timestamp with time zone", maxLength: 8, nullable: false), - EndTime = table.Column(type: "timestamp with time zone", maxLength: 8, nullable: false), - Monday = table.Column(type: "boolean", nullable: true), - Tuesday = table.Column(type: "boolean", nullable: true), - Wednesday = table.Column(type: "boolean", nullable: true), - Thursday = table.Column(type: "boolean", nullable: true), - Friday = table.Column(type: "boolean", nullable: true), - Saturday = table.Column(type: "boolean", nullable: true), - Sunday = table.Column(type: "boolean", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_WorkHour", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "OpenIddictApplications", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - ApplicationType = table.Column(type: "character varying(50)", maxLength: 50, nullable: true, collation: "tr-x-icu"), - ClientId = table.Column(type: "character varying(100)", maxLength: 100, nullable: true, collation: "tr-x-icu"), - ClientSecret = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ClientType = table.Column(type: "character varying(50)", maxLength: 50, nullable: true, collation: "tr-x-icu"), - ConsentType = table.Column(type: "character varying(50)", maxLength: 50, nullable: true, collation: "tr-x-icu"), - DisplayName = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - DisplayNames = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - JsonWebKeySet = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Permissions = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - PostLogoutRedirectUris = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Properties = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - RedirectUris = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Requirements = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Settings = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - FrontChannelLogoutUri = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ClientUri = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - LogoUri = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ExtraProperties = table.Column(type: "text", nullable: false), - ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_OpenIddictApplications", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "OpenIddictScopes", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Description = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Descriptions = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - DisplayName = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - DisplayNames = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(200)", maxLength: 200, nullable: true, collation: "tr-x-icu"), - Properties = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Resources = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ExtraProperties = table.Column(type: "text", nullable: false), - ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_OpenIddictScopes", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_About", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - StatsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - DescriptionsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - SectionsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_About", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_AiBot", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - ApiUrl = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - IsActive = table.Column(type: "boolean", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_AiBot", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_BackgroundWorker", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Cron = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - WorkerType = table.Column(type: "integer", nullable: false), - IsActive = table.Column(type: "boolean", nullable: false, defaultValue: true), - DataSourceCode = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - BeforeSp = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - AfterSp = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Options = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_BackgroundWorker", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_BackgroundWorker_MailQueueTableFormat", - columns: table => new - { - Id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - TableName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Order = table.Column(type: "smallint", nullable: false), - ColumnName = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - Caption = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - HeaderCss = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, collation: "tr-x-icu"), - Css = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, collation: "tr-x-icu"), - FooterCss = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, collation: "tr-x-icu"), - DataType = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - DataFormat = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - IsHidden = table.Column(type: "boolean", nullable: false), - IsProtected = table.Column(type: "boolean", nullable: false), - SubTotal = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - Width = table.Column(type: "integer", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_BackgroundWorker_MailQueueTableFormat", x => x.Id); - table.UniqueConstraint("AK_Sas_H_BackgroundWorker_MailQueueTableFormat_TableName", x => x.TableName); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_BlogCategory", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Slug = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - Icon = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - DisplayOrder = table.Column(type: "integer", nullable: false), - IsActive = table.Column(type: "boolean", nullable: false), - PostCount = table.Column(type: "integer", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_BlogCategory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_Contact", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Address = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - PhoneNumber = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - Email = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Location = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - TaxNumber = table.Column(type: "bigint", nullable: true), - BankJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - WorkHoursJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - MapJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_Contact", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_ContactTitle", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Title = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Abbreviation = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_ContactTitle", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_CountryGroup", - columns: table => new - { - Id = table.Column(type: "text", nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_CountryGroup", x => x.Id); - table.UniqueConstraint("AK_Sas_H_CountryGroup_Name", x => x.Name); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_CrudEndpoint", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - EntityName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Method = table.Column(type: "character varying(10)", maxLength: 10, nullable: false, collation: "tr-x-icu"), - Path = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - OperationType = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - CsharpCode = table.Column(type: "text", nullable: false, collation: "tr-x-icu"), - IsActive = table.Column(type: "boolean", nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_CrudEndpoint", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_Currency", - columns: table => new - { - Id = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - Symbol = table.Column(type: "character varying(8)", maxLength: 8, nullable: true, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Rate = table.Column(type: "numeric(18,6)", precision: 18, scale: 6, nullable: false), - IsActive = table.Column(type: "boolean", nullable: false, defaultValue: true), - LastUpdated = table.Column(type: "timestamp with time zone", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_Currency", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_CustomComponent", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Code = table.Column(type: "text", nullable: false, collation: "tr-x-icu"), - Props = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - IsActive = table.Column(type: "boolean", nullable: false), - Dependencies = table.Column(type: "character varying(2048)", maxLength: 2048, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_CustomComponent", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_CustomEndpoint", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - Url = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Method = table.Column(type: "character varying(10)", maxLength: 10, nullable: false, collation: "tr-x-icu"), - DataSourceCode = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Sql = table.Column(type: "text", nullable: false, collation: "tr-x-icu"), - ParametersJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - PermissionsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_CustomEndpoint", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_DataSource", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Code = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - DataSourceType = table.Column(type: "integer", nullable: false), - ConnectionString = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_DataSource", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_Demo", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - OrganizationName = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Email = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - PhoneNumber = table.Column(type: "character varying(20)", maxLength: 20, nullable: false, collation: "tr-x-icu"), - Address = table.Column(type: "character varying(512)", maxLength: 512, nullable: false, collation: "tr-x-icu"), - NumberOfBranches = table.Column(type: "integer", nullable: false), - NumberOfUsers = table.Column(type: "integer", nullable: false), - Message = table.Column(type: "character varying(2048)", maxLength: 2048, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_Demo", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_DynamicService", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - DisplayName = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(2048)", maxLength: 2048, nullable: true, collation: "tr-x-icu"), - Code = table.Column(type: "text", nullable: false, collation: "tr-x-icu"), - IsActive = table.Column(type: "boolean", nullable: false, defaultValue: true), - CompilationStatus = table.Column(type: "character varying(20)", maxLength: 20, nullable: false), - LastCompilationError = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - LastSuccessfulCompilation = table.Column(type: "timestamp with time zone", nullable: true), - Version = table.Column(type: "integer", nullable: false, defaultValue: 1), - CodeHash = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - PrimaryEntityType = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - ControllerName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_DynamicService", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_Home", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - HeroBackgroundImageKey = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - HeroPrimaryCtaKey = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - HeroSecondaryCtaKey = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - FeaturesTitleKey = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - FeaturesSubtitleKey = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - SolutionsTitleKey = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - SolutionsSubtitleKey = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - CtaTitleKey = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - CtaSubtitleKey = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - CtaButtonLabelKey = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - SlidesJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - FeaturesJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - SolutionsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_Home", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_InstallmentOption", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Installment = table.Column(type: "integer", nullable: false), - Name = table.Column(type: "character varying(32)", maxLength: 32, nullable: false, collation: "tr-x-icu"), - Commission = table.Column(type: "numeric(5,3)", precision: 5, scale: 3, nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_InstallmentOption", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_Language", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - CultureName = table.Column(type: "character varying(10)", maxLength: 10, nullable: false, collation: "tr-x-icu"), - UiCultureName = table.Column(type: "character varying(10)", maxLength: 10, nullable: false, collation: "tr-x-icu"), - DisplayName = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - IsEnabled = table.Column(type: "boolean", nullable: false), - TwoLetterISOLanguageName = table.Column(type: "character varying(2)", maxLength: 2, nullable: false, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_Language", x => x.Id); - table.UniqueConstraint("AK_Sas_H_Language_CultureName", x => x.CultureName); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_LanguageKey", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Key = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - ResourceName = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_LanguageKey", x => x.Id); - table.UniqueConstraint("AK_Sas_H_LanguageKey_ResourceName_Key", x => new { x.ResourceName, x.Key }); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_ListForm", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - ListFormCode = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - CultureName = table.Column(type: "character varying(10)", maxLength: 10, nullable: false, collation: "tr-x-icu"), - DataSourceCode = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - SelectCommandType = table.Column(type: "integer", nullable: false), - TableName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - SelectCommand = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - KeyFieldName = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - KeyFieldDbSourceType = table.Column(type: "integer", nullable: false), - SelectFieldsDefaultValueJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - Title = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - SortMode = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - PageSize = table.Column(type: "integer", nullable: false, defaultValue: 50), - Width = table.Column(type: "integer", nullable: true), - Height = table.Column(type: "integer", nullable: true), - FullHeight = table.Column(type: "boolean", nullable: false), - DefaultFilter = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ColumnOptionJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - PivotOptionJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - TreeOptionJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - GanttOptionJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - SchedulerOptionJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - FilterRowJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - RowJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - HeaderFilterJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - FilterPanelJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - SearchPanelJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - GroupPanelJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - SelectionJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - PagerOptionJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - EditingOptionJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - EditingFormJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - PermissionJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - InsertFieldsDefaultValueJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - UpdateFieldsDefaultValueJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - DeleteFieldsDefaultValueJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CommandColumnJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - StateStoringJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - DeleteCommand = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - DeleteBeforeCommand = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - DeleteAfterCommand = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - UpdateCommand = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - UpdateBeforeCommand = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - UpdateAfterCommand = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - InsertCommand = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - InsertBeforeCommand = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - InsertAfterCommand = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - UpdateServiceAddress = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - InsertServiceAddress = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - DeleteServiceAddress = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - CustomJsSourcesJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CustomStyleSourcesJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - FormFieldsDefaultValueJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - IsTenant = table.Column(type: "boolean", nullable: false), - IsBranch = table.Column(type: "boolean", nullable: false), - IsOrganizationUnit = table.Column(type: "boolean", nullable: false), - ListFormType = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - IsSubForm = table.Column(type: "boolean", nullable: false), - SubFormsListFormType = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ShowNote = table.Column(type: "boolean", nullable: false), - SubFormsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - WidgetsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - WorkflowJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ExtraFilterJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - LayoutJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - UserId = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - RoleId = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - CommonJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - DataSourceJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - AdaptiveLayoutJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - AnimationJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - AnnotationsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ArgumentAxisJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CommonAnnotationsSettingsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CommonAxisSettingsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CommonPaneSettingsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CommonSeriesSettingsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CrosshairJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ExportJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - LegendJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - MarginJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - PanesJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ScrollBarJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - SeriesJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - SizeJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - TitleJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - TooltipJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ValueAxisJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ZoomAndPanJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_ListForm", x => x.Id); - table.UniqueConstraint("AK_Sas_H_ListForm_ListFormCode", x => x.ListFormCode); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_ListFormWorkflow", - columns: table => new - { - Id = table.Column(type: "character varying(50)", maxLength: 50, nullable: false, collation: "tr-x-icu"), - ListFormCode = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - Kind = table.Column(type: "character varying(50)", maxLength: 50, nullable: false, collation: "tr-x-icu"), - Title = table.Column(type: "character varying(250)", maxLength: 250, nullable: false, collation: "tr-x-icu"), - CompareColumn = table.Column(type: "character varying(100)", maxLength: 100, nullable: false, collation: "tr-x-icu"), - CompareOperator = table.Column(type: "character varying(20)", maxLength: 20, nullable: false, collation: "tr-x-icu"), - CompareValue = table.Column(type: "numeric(18,2)", precision: 18, scale: 2, nullable: false), - Approver = table.Column(type: "character varying(250)", maxLength: 250, nullable: false, collation: "tr-x-icu"), - NextOnStart = table.Column(type: "character varying(50)", maxLength: 50, nullable: false, collation: "tr-x-icu"), - NextOnTrue = table.Column(type: "character varying(50)", maxLength: 50, nullable: false, collation: "tr-x-icu"), - NextOnFalse = table.Column(type: "character varying(50)", maxLength: 50, nullable: false, collation: "tr-x-icu"), - NextOnApprove = table.Column(type: "character varying(50)", maxLength: 50, nullable: false, collation: "tr-x-icu"), - NextOnReject = table.Column(type: "character varying(50)", maxLength: 50, nullable: false, collation: "tr-x-icu"), - PositionX = table.Column(type: "integer", nullable: false), - PositionY = table.Column(type: "integer", nullable: false), - CompareOutcomesJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_ListFormWorkflow", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_LogEntry", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Message = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - MessageTemplate = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Level = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - TimeStamp = table.Column(type: "timestamp with time zone", nullable: true), - Exception = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Properties = table.Column(type: "text", nullable: true, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_LogEntry", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_Menu", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Code = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - DisplayName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Order = table.Column(type: "integer", nullable: false), - Url = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - Icon = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - ParentCode = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - CssClass = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - RequiredPermissionName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - ShortName = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Target = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - IsDisabled = table.Column(type: "boolean", nullable: false), - ElementId = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - UserId = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - RoleId = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - CultureName = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_Menu", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_MenuGroup", - columns: table => new - { - Id = table.Column(type: "text", nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_MenuGroup", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_NotificationType", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_NotificationType", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_Order", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - IsActive = table.Column(type: "boolean", nullable: false), - OrganizationName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Founder = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - VknTckn = table.Column(type: "bigint", nullable: true), - TaxOffice = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Address1 = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - Address2 = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - District = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Country = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - City = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - PostalCode = table.Column(type: "character varying(16)", maxLength: 16, nullable: true, collation: "tr-x-icu"), - MobileNumber = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - PhoneNumber = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - FaxNumber = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - Email = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Website = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - MenuGroup = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - Subtotal = table.Column(type: "numeric(18,2)", precision: 18, scale: 2, nullable: false), - Commission = table.Column(type: "numeric(18,2)", precision: 18, scale: 2, nullable: false), - Total = table.Column(type: "numeric(18,2)", precision: 18, scale: 2, nullable: false), - PaymentMethodId = table.Column(type: "uuid", nullable: false), - Installment = table.Column(type: "integer", nullable: true), - PaymentDataJson = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_Order", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_PaymentMethod", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - Commission = table.Column(type: "numeric(5,3)", precision: 5, scale: 3, nullable: false), - Logo = table.Column(type: "character varying(32)", maxLength: 32, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_PaymentMethod", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_Product", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, collation: "tr-x-icu"), - Category = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - Order = table.Column(type: "integer", nullable: false), - MonthlyPrice = table.Column(type: "numeric(18,2)", precision: 18, scale: 2, nullable: true), - YearlyPrice = table.Column(type: "numeric(18,2)", precision: 18, scale: 2, nullable: true), - IsQuantityBased = table.Column(type: "boolean", nullable: false), - ImageUrl = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_Product", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_Route", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Key = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Path = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - ComponentPath = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - RouteType = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - Authority = table.Column(type: "text", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_Route", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_Service", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Icon = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - Title = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - Type = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - Features = table.Column(type: "text", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_Service", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_SettingDefinition", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Code = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - NameKey = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - DescriptionKey = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - DefaultValue = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, collation: "tr-x-icu"), - IsVisibleToClients = table.Column(type: "boolean", nullable: false), - Providers = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - IsInherited = table.Column(type: "boolean", nullable: false), - IsEncrypted = table.Column(type: "boolean", nullable: false), - MainGroupKey = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - SubGroupKey = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - RequiredPermissionName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - DataType = table.Column(type: "character varying(16)", maxLength: 16, nullable: false, collation: "tr-x-icu"), - SelectOptions = table.Column(type: "text", nullable: true), - Order = table.Column(type: "integer", nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_SettingDefinition", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_SkillType", - columns: table => new - { - Id = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_SkillType", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_UomCategory", - columns: table => new - { - Id = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_UomCategory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_T_Branch", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Code = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - VknTckn = table.Column(type: "bigint", nullable: false), - TaxOffice = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Country = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - City = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - District = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Township = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - Address1 = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - Address2 = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - PostalCode = table.Column(type: "character varying(16)", maxLength: 16, nullable: true, collation: "tr-x-icu"), - MobileNumber = table.Column(type: "character varying(20)", maxLength: 20, nullable: false, collation: "tr-x-icu"), - PhoneNumber = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - FaxNumber = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - Email = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Website = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - IsActive = table.Column(type: "boolean", nullable: true, defaultValue: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_T_Branch", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_T_ForumCategory", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Slug = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - Icon = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - DisplayOrder = table.Column(type: "integer", nullable: false), - IsActive = table.Column(type: "boolean", nullable: false), - IsLocked = table.Column(type: "boolean", nullable: false), - TopicCount = table.Column(type: "integer", nullable: true), - PostCount = table.Column(type: "integer", nullable: true), - LastPostId = table.Column(type: "uuid", nullable: true), - LastPostDate = table.Column(type: "timestamp with time zone", nullable: true), - LastPostUserId = table.Column(type: "uuid", nullable: true), - LastPostUserName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_T_ForumCategory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Sas_T_GlobalSearch", - columns: table => new - { - Id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - TenantId = table.Column(type: "uuid", nullable: true), - System = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - Group = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - Term = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Weight = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - Url = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_T_GlobalSearch", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpAuditLogActions", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - AuditLogId = table.Column(type: "uuid", nullable: false), - ServiceName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - MethodName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Parameters = table.Column(type: "character varying(2000)", maxLength: 2000, nullable: true, collation: "tr-x-icu"), - ExecutionTime = table.Column(type: "timestamp with time zone", nullable: false), - ExecutionDuration = table.Column(type: "integer", nullable: false), - ExtraProperties = table.Column(type: "text", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpAuditLogActions", x => x.Id); - table.ForeignKey( - name: "FK_AbpAuditLogActions_AbpAuditLogs_AuditLogId", - column: x => x.AuditLogId, - principalTable: "AbpAuditLogs", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpEntityChanges", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - AuditLogId = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - ChangeTime = table.Column(type: "timestamp with time zone", nullable: false), - ChangeType = table.Column(type: "smallint", nullable: false), - EntityTenantId = table.Column(type: "uuid", nullable: true), - EntityId = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - EntityTypeFullName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - ExtraProperties = table.Column(type: "text", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEntityChanges", x => x.Id); - table.ForeignKey( - name: "FK_AbpEntityChanges_AbpAuditLogs_AuditLogId", - column: x => x.AuditLogId, - principalTable: "AbpAuditLogs", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpOrganizationUnitRoles", - columns: table => new - { - RoleId = table.Column(type: "uuid", nullable: false), - OrganizationUnitId = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => new { x.OrganizationUnitId, x.RoleId }); - table.ForeignKey( - name: "FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationU~", - column: x => x.OrganizationUnitId, - principalTable: "AbpOrganizationUnits", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_AbpOrganizationUnitRoles_AbpRoles_RoleId", - column: x => x.RoleId, - principalTable: "AbpRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpRoleClaims", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - RoleId = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - ClaimType = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - ClaimValue = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpRoleClaims", x => x.Id); - table.ForeignKey( - name: "FK_AbpRoleClaims_AbpRoles_RoleId", - column: x => x.RoleId, - principalTable: "AbpRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpTenantConnectionStrings", - columns: table => new - { - TenantId = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - Value = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpTenantConnectionStrings", x => new { x.TenantId, x.Name }); - table.ForeignKey( - name: "FK_AbpTenantConnectionStrings_AbpTenants_TenantId", - column: x => x.TenantId, - principalTable: "AbpTenants", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserClaims", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - UserId = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - ClaimType = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - ClaimValue = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserClaims", x => x.Id); - table.ForeignKey( - name: "FK_AbpUserClaims_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserLogins", - columns: table => new - { - UserId = table.Column(type: "uuid", nullable: false), - LoginProvider = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - TenantId = table.Column(type: "uuid", nullable: true), - ProviderKey = table.Column(type: "character varying(196)", maxLength: 196, nullable: false, collation: "tr-x-icu"), - ProviderDisplayName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserLogins", x => new { x.UserId, x.LoginProvider }); - table.ForeignKey( - name: "FK_AbpUserLogins_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserOrganizationUnits", - columns: table => new - { - UserId = table.Column(type: "uuid", nullable: false), - OrganizationUnitId = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserOrganizationUnits", x => new { x.OrganizationUnitId, x.UserId }); - table.ForeignKey( - name: "FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationU~", - column: x => x.OrganizationUnitId, - principalTable: "AbpOrganizationUnits", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_AbpUserOrganizationUnits_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserRoles", - columns: table => new - { - UserId = table.Column(type: "uuid", nullable: false), - RoleId = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserRoles", x => new { x.UserId, x.RoleId }); - table.ForeignKey( - name: "FK_AbpUserRoles_AbpRoles_RoleId", - column: x => x.RoleId, - principalTable: "AbpRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_AbpUserRoles_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserTokens", - columns: table => new - { - UserId = table.Column(type: "uuid", nullable: false), - LoginProvider = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - TenantId = table.Column(type: "uuid", nullable: true), - Value = table.Column(type: "text", nullable: true, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserTokens", x => new { x.UserId, x.LoginProvider, x.Name }); - table.ForeignKey( - name: "FK_AbpUserTokens_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_JobPosition", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - DepartmentId = table.Column(type: "uuid", nullable: false), - ParentId = table.Column(type: "uuid", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_JobPosition", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_JobPosition_Adm_T_Department_DepartmentId", - column: x => x.DepartmentId, - principalTable: "Adm_T_Department", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_Event", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - CategoryId = table.Column(type: "uuid", nullable: false), - TypeId = table.Column(type: "uuid", nullable: false), - Date = table.Column(type: "timestamp with time zone", nullable: false), - Name = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, collation: "tr-x-icu"), - Place = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - Status = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - UserId = table.Column(type: "uuid", nullable: true), - ParticipantsCount = table.Column(type: "integer", nullable: false), - Likes = table.Column(type: "integer", nullable: false), - isPublished = table.Column(type: "boolean", nullable: false, defaultValue: false), - Photos = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_Event", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_Event_Adm_T_EventCategory_CategoryId", - column: x => x.CategoryId, - principalTable: "Adm_T_EventCategory", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Adm_T_Event_Adm_T_EventType_TypeId", - column: x => x.TypeId, - principalTable: "Adm_T_EventType", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_ReportTemplate", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - Name = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Description = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, collation: "tr-x-icu"), - HtmlContent = table.Column(type: "text", nullable: false, collation: "tr-x-icu"), - CategoryId = table.Column(type: "uuid", nullable: false), - Status = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_ReportTemplate", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_ReportTemplate_Adm_T_ReportCategory_CategoryId", - column: x => x.CategoryId, - principalTable: "Adm_T_ReportCategory", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_SocialComment", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - SocialPostId = table.Column(type: "uuid", nullable: false), - UserId = table.Column(type: "uuid", nullable: true), - Content = table.Column(type: "character varying(8192)", maxLength: 8192, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_SocialComment", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_SocialComment_Adm_T_SocialPost_SocialPostId", - column: x => x.SocialPostId, - principalTable: "Adm_T_SocialPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_SocialLike", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - SocialPostId = table.Column(type: "uuid", nullable: false), - UserId = table.Column(type: "uuid", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_SocialLike", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_SocialLike_Adm_T_SocialPost_SocialPostId", - column: x => x.SocialPostId, - principalTable: "Adm_T_SocialPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_SocialLocation", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - SocialPostId = table.Column(type: "uuid", nullable: false), - Name = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Address = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - Lat = table.Column(type: "double precision", nullable: true), - Lng = table.Column(type: "double precision", nullable: true), - PlaceId = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_SocialLocation", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_SocialLocation_Adm_T_SocialPost_SocialPostId", - column: x => x.SocialPostId, - principalTable: "Adm_T_SocialPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_SocialMedia", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - SocialPostId = table.Column(type: "uuid", nullable: false), - Type = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - Urls = table.Column(type: "text[]", nullable: true), - PollQuestion = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - PollTotalVotes = table.Column(type: "integer", nullable: true), - PollEndsAt = table.Column(type: "timestamp with time zone", nullable: true), - PollUserVoteId = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_SocialMedia", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_SocialMedia_Adm_T_SocialPost_SocialPostId", - column: x => x.SocialPostId, - principalTable: "Adm_T_SocialPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_SurveyQuestion", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - SurveyId = table.Column(type: "uuid", nullable: false), - QuestionText = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false, collation: "tr-x-icu"), - Type = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - Order = table.Column(type: "integer", nullable: false), - IsRequired = table.Column(type: "boolean", nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_SurveyQuestion", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_SurveyQuestion_Adm_T_Survey_SurveyId", - column: x => x.SurveyId, - principalTable: "Adm_T_Survey", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_SurveyResponse", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - SurveyId = table.Column(type: "uuid", nullable: false), - UserId = table.Column(type: "uuid", nullable: true), - SubmissionTime = table.Column(type: "timestamp with time zone", nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_SurveyResponse", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_SurveyResponse_Adm_T_Survey_SurveyId", - column: x => x.SurveyId, - principalTable: "Adm_T_Survey", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_VideoroomAttandance", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - BranchId = table.Column(type: "uuid", nullable: true), - SessionId = table.Column(type: "uuid", nullable: false), - StudentId = table.Column(type: "uuid", nullable: true), - StudentName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - JoinTime = table.Column(type: "timestamp with time zone", nullable: false), - LeaveTime = table.Column(type: "timestamp with time zone", nullable: true), - TotalDurationMinutes = table.Column(type: "integer", nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_VideoroomAttandance", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_VideoroomAttandance_Adm_T_Videoroom_SessionId", - column: x => x.SessionId, - principalTable: "Adm_T_Videoroom", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_VideoroomChat", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - BranchId = table.Column(type: "uuid", nullable: true), - SessionId = table.Column(type: "uuid", nullable: false), - SenderId = table.Column(type: "uuid", nullable: true), - SenderName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Message = table.Column(type: "character varying(2048)", maxLength: 2048, nullable: false, collation: "tr-x-icu"), - Timestamp = table.Column(type: "timestamp with time zone", nullable: false), - RecipientId = table.Column(type: "uuid", nullable: true), - RecipientName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - IsTeacher = table.Column(type: "boolean", nullable: false), - MessageType = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_VideoroomChat", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_VideoroomChat_Adm_T_Videoroom_SessionId", - column: x => x.SessionId, - principalTable: "Adm_T_Videoroom", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_VideoroomParticipant", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - BranchId = table.Column(type: "uuid", nullable: true), - SessionId = table.Column(type: "uuid", nullable: false), - UserId = table.Column(type: "uuid", nullable: true), - UserName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - IsTeacher = table.Column(type: "boolean", nullable: false), - IsAudioMuted = table.Column(type: "boolean", nullable: false), - IsVideoMuted = table.Column(type: "boolean", nullable: false), - IsHandRaised = table.Column(type: "boolean", nullable: false), - IsKicked = table.Column(type: "boolean", nullable: false, defaultValue: false), - IsActive = table.Column(type: "boolean", nullable: false, defaultValue: true), - JoinTime = table.Column(type: "timestamp with time zone", nullable: false), - ConnectionId = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_VideoroomParticipant", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_VideoroomParticipant_Adm_T_Videoroom_SessionId", - column: x => x.SessionId, - principalTable: "Adm_T_Videoroom", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "OpenIddictAuthorizations", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - ApplicationId = table.Column(type: "uuid", nullable: true), - CreationDate = table.Column(type: "timestamp with time zone", nullable: true), - Properties = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Scopes = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Status = table.Column(type: "character varying(50)", maxLength: 50, nullable: true, collation: "tr-x-icu"), - Subject = table.Column(type: "character varying(400)", maxLength: 400, nullable: true, collation: "tr-x-icu"), - Type = table.Column(type: "character varying(50)", maxLength: 50, nullable: true, collation: "tr-x-icu"), - ExtraProperties = table.Column(type: "text", nullable: false), - ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: false, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_OpenIddictAuthorizations", x => x.Id); - table.ForeignKey( - name: "FK_OpenIddictAuthorizations_OpenIddictApplications_Application~", - column: x => x.ApplicationId, - principalTable: "OpenIddictApplications", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_BackgroundWorker_MailQueue", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TemplateId = table.Column(type: "uuid", nullable: false), - From = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - To = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - MailParameter = table.Column(type: "character varying(8192)", maxLength: 8192, nullable: true, collation: "tr-x-icu"), - TableName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - TableParameter = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - Attachment = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - AttachmentParameter = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - SendStatus = table.Column(type: "boolean", nullable: false), - SendTime = table.Column(type: "timestamp with time zone", nullable: true), - AwsMessageId = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - RelatedRecordId = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_BackgroundWorker_MailQueue", x => x.Id); - table.UniqueConstraint("AK_Sas_H_BackgroundWorker_MailQueue_AwsMessageId", x => x.AwsMessageId); - table.ForeignKey( - name: "FK_Sas_H_BackgroundWorker_MailQueue_Sas_H_BackgroundWorker_Mai~", - column: x => x.TableName, - principalTable: "Sas_H_BackgroundWorker_MailQueueTableFormat", - principalColumn: "TableName", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_BlogPost", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Title = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Slug = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - ContentTr = table.Column(type: "text", nullable: false, collation: "tr-x-icu"), - ContentEn = table.Column(type: "text", nullable: false, collation: "tr-x-icu"), - Summary = table.Column(type: "character varying(512)", maxLength: 512, nullable: false, collation: "tr-x-icu"), - CoverImage = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - ReadTime = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - CategoryId = table.Column(type: "uuid", nullable: false), - Author = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ViewCount = table.Column(type: "integer", nullable: true), - LikeCount = table.Column(type: "integer", nullable: true), - CommentCount = table.Column(type: "integer", nullable: true), - IsPublished = table.Column(type: "boolean", nullable: false), - PublishedAt = table.Column(type: "timestamp with time zone", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_BlogPost", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_BlogPost_Sas_H_BlogCategory_CategoryId", - column: x => x.CategoryId, - principalTable: "Sas_H_BlogCategory", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_Country", - columns: table => new - { - Id = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - GroupName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Currency = table.Column(type: "character varying(8)", maxLength: 8, nullable: false, collation: "tr-x-icu"), - PhoneCode = table.Column(type: "integer", nullable: false), - TaxLabel = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - ZipRequired = table.Column(type: "boolean", nullable: false), - StateRequired = table.Column(type: "boolean", nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_Country", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_Country_Sas_H_CountryGroup_GroupName", - column: x => x.GroupName, - principalTable: "Sas_H_CountryGroup", - principalColumn: "Name", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_LanguageText", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - CultureName = table.Column(type: "character varying(10)", maxLength: 10, nullable: false, collation: "tr-x-icu"), - Key = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - ResourceName = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, collation: "tr-x-icu"), - Value = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: false, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_LanguageText", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_LanguageText_Sas_H_LanguageKey_ResourceName_Key", - columns: x => new { x.ResourceName, x.Key }, - principalTable: "Sas_H_LanguageKey", - principalColumns: new[] { "ResourceName", "Key" }, - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Sas_H_LanguageText_Sas_H_Language_CultureName", - column: x => x.CultureName, - principalTable: "Sas_H_Language", - principalColumn: "CultureName", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_ListFormCustomization", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - ListFormCode = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - UserId = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - RoleId = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - FilterName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - CustomizationData = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CustomizationType = table.Column(type: "integer", nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_ListFormCustomization", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_ListFormCustomization_Sas_H_ListForm_ListFormCode", - column: x => x.ListFormCode, - principalTable: "Sas_H_ListForm", - principalColumn: "ListFormCode", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_ListFormField", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - ListFormCode = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - UserId = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - RoleId = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - CultureName = table.Column(type: "character varying(10)", maxLength: 10, nullable: false, collation: "tr-x-icu"), - FieldName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - CaptionName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - PlaceHolder = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - Visible = table.Column(type: "boolean", nullable: true, defaultValue: true), - IsActive = table.Column(type: "boolean", nullable: true, defaultValue: true), - Width = table.Column(type: "integer", nullable: true, defaultValue: 100), - ListOrderNo = table.Column(type: "integer", nullable: true, defaultValue: 30), - SourceDbType = table.Column(type: "integer", nullable: false), - SortIndex = table.Column(type: "integer", nullable: true), - SortDirection = table.Column(type: "character varying(10)", maxLength: 10, nullable: true, collation: "tr-x-icu"), - AllowSearch = table.Column(type: "boolean", nullable: true, defaultValue: false), - AllowEditing = table.Column(type: "boolean", nullable: true, defaultValue: true), - AllowAdding = table.Column(type: "boolean", nullable: true, defaultValue: true), - BandName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - ColumnFilterJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ColumnHeaderJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - GroupingJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ColumnCustomizationJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - TotalSummaryJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - GroupSummaryJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ColumnCssClass = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - ColumnCssValue = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - JoinTableJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - LookupJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ValidationRuleJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - ColumnStylingJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - PermissionJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - PivotSettingsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Alignment = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, defaultValue: "left", collation: "tr-x-icu"), - Format = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - EditorOptions = table.Column(type: "text", nullable: true, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_ListFormField", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_ListFormField_Sas_H_ListForm_ListFormCode", - column: x => x.ListFormCode, - principalTable: "Sas_H_ListForm", - principalColumn: "ListFormCode", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_ListFormImport", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - ListFormCode = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - BlobName = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Status = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - TotalRows = table.Column(type: "integer", nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_ListFormImport", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_ListFormImport_Sas_H_ListForm_ListFormCode", - column: x => x.ListFormCode, - principalTable: "Sas_H_ListForm", - principalColumn: "ListFormCode", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_NotificationRule", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - NotificationTypeId = table.Column(type: "uuid", nullable: false), - RecipientType = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - RecipientId = table.Column(type: "character varying(256)", maxLength: 256, nullable: true, collation: "tr-x-icu"), - Channel = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - IsActive = table.Column(type: "boolean", nullable: false), - IsFixed = table.Column(type: "boolean", nullable: false), - IsCustomized = table.Column(type: "boolean", nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_NotificationRule", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_NotificationRule_Sas_H_NotificationType_NotificationT~", - column: x => x.NotificationTypeId, - principalTable: "Sas_H_NotificationType", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_OrderItem", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - OrderId = table.Column(type: "uuid", nullable: false), - ProductId = table.Column(type: "uuid", nullable: false), - ProductName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - BillingCycle = table.Column(type: "character varying(32)", maxLength: 32, nullable: false, collation: "tr-x-icu"), - Quantity = table.Column(type: "integer", nullable: false), - TotalPrice = table.Column(type: "numeric(18,2)", precision: 18, scale: 2, nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_OrderItem", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_OrderItem_Sas_H_Order_OrderId", - column: x => x.OrderId, - principalTable: "Sas_H_Order", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_Skill", - columns: table => new - { - Id = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - SkillTypeId = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_Skill", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_Skill_Sas_H_SkillType_SkillTypeId", - column: x => x.SkillTypeId, - principalTable: "Sas_H_SkillType", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_SkillLevel", - columns: table => new - { - Id = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - SkillTypeId = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Progress = table.Column(type: "integer", nullable: false, defaultValue: 0), - IsDefault = table.Column(type: "boolean", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_SkillLevel", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_SkillLevel_Sas_H_SkillType_SkillTypeId", - column: x => x.SkillTypeId, - principalTable: "Sas_H_SkillType", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_Uom", - columns: table => new - { - Id = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - UomCategoryId = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - Type = table.Column(type: "character varying(32)", maxLength: 32, nullable: false, collation: "tr-x-icu"), - Ratio = table.Column(type: "numeric(18,6)", precision: 18, scale: 6, nullable: false), - IsActive = table.Column(type: "boolean", nullable: false), - Rounding = table.Column(type: "numeric(18,6)", precision: 18, scale: 6, nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_Uom", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_Uom_Sas_H_UomCategory_UomCategoryId", - column: x => x.UomCategoryId, - principalTable: "Sas_H_UomCategory", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "Sas_T_BranchUsers", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - BranchId = table.Column(type: "uuid", nullable: false), - UserId = table.Column(type: "uuid", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_T_BranchUsers", x => x.Id); - table.ForeignKey( - name: "FK_Sas_T_BranchUsers_Sas_T_Branch_BranchId", - column: x => x.BranchId, - principalTable: "Sas_T_Branch", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "Sas_T_ForumTopic", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Title = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Content = table.Column(type: "text", nullable: false, collation: "tr-x-icu"), - CategoryId = table.Column(type: "uuid", nullable: false), - AuthorId = table.Column(type: "uuid", nullable: false), - AuthorName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - ViewCount = table.Column(type: "integer", nullable: false), - ReplyCount = table.Column(type: "integer", nullable: false), - LikeCount = table.Column(type: "integer", nullable: false), - IsPinned = table.Column(type: "boolean", nullable: false), - IsLocked = table.Column(type: "boolean", nullable: false), - IsSolved = table.Column(type: "boolean", nullable: false), - LastPostId = table.Column(type: "uuid", nullable: true), - LastPostDate = table.Column(type: "timestamp with time zone", nullable: true), - LastPostUserId = table.Column(type: "uuid", nullable: true), - LastPostUserName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - TenantId = table.Column(type: "uuid", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_T_ForumTopic", x => x.Id); - table.ForeignKey( - name: "FK_Sas_T_ForumTopic_Sas_T_ForumCategory_CategoryId", - column: x => x.CategoryId, - principalTable: "Sas_T_ForumCategory", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "AbpEntityPropertyChanges", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - EntityChangeId = table.Column(type: "uuid", nullable: false), - NewValue = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - OriginalValue = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - PropertyName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - PropertyTypeFullName = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEntityPropertyChanges", x => x.Id); - table.ForeignKey( - name: "FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId", - column: x => x.EntityChangeId, - principalTable: "AbpEntityChanges", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_EventComment", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - EventId = table.Column(type: "uuid", nullable: false), - UserId = table.Column(type: "uuid", nullable: false), - Content = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, collation: "tr-x-icu"), - Likes = table.Column(type: "integer", nullable: false, defaultValue: 0), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_EventComment", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_EventComment_Adm_T_Event_EventId", - column: x => x.EventId, - principalTable: "Adm_T_Event", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_EventLike", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - EventId = table.Column(type: "uuid", nullable: false), - UserId = table.Column(type: "uuid", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_EventLike", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_EventLike_Adm_T_Event_EventId", - column: x => x.EventId, - principalTable: "Adm_T_Event", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_SocialPollOption", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - SocialMediaId = table.Column(type: "uuid", nullable: false), - Text = table.Column(type: "character varying(512)", maxLength: 512, nullable: false, collation: "tr-x-icu"), - Votes = table.Column(type: "integer", nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_SocialPollOption", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_SocialPollOption_Adm_T_SocialMedia_SocialMediaId", - column: x => x.SocialMediaId, - principalTable: "Adm_T_SocialMedia", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_SurveyQuestionOption", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - QuestionId = table.Column(type: "uuid", nullable: false), - Text = table.Column(type: "character varying(512)", maxLength: 512, nullable: false, collation: "tr-x-icu"), - Order = table.Column(type: "integer", nullable: false), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_SurveyQuestionOption", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_SurveyQuestionOption_Adm_T_SurveyQuestion_QuestionId", - column: x => x.QuestionId, - principalTable: "Adm_T_SurveyQuestion", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Adm_T_SurveyAnswer", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TenantId = table.Column(type: "uuid", nullable: true), - ResponseId = table.Column(type: "uuid", nullable: false), - QuestionId = table.Column(type: "uuid", nullable: false), - QuestionType = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - Value = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Adm_T_SurveyAnswer", x => x.Id); - table.ForeignKey( - name: "FK_Adm_T_SurveyAnswer_Adm_T_SurveyQuestion_QuestionId", - column: x => x.QuestionId, - principalTable: "Adm_T_SurveyQuestion", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_Adm_T_SurveyAnswer_Adm_T_SurveyResponse_ResponseId", - column: x => x.ResponseId, - principalTable: "Adm_T_SurveyResponse", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "OpenIddictTokens", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - ApplicationId = table.Column(type: "uuid", nullable: true), - AuthorizationId = table.Column(type: "uuid", nullable: true), - CreationDate = table.Column(type: "timestamp with time zone", nullable: true), - ExpirationDate = table.Column(type: "timestamp with time zone", nullable: true), - Payload = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - Properties = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - RedemptionDate = table.Column(type: "timestamp with time zone", nullable: true), - ReferenceId = table.Column(type: "character varying(100)", maxLength: 100, nullable: true, collation: "tr-x-icu"), - Status = table.Column(type: "character varying(50)", maxLength: 50, nullable: true, collation: "tr-x-icu"), - Subject = table.Column(type: "character varying(400)", maxLength: 400, nullable: true, collation: "tr-x-icu"), - Type = table.Column(type: "character varying(150)", maxLength: 150, nullable: true, collation: "tr-x-icu"), - ExtraProperties = table.Column(type: "text", nullable: false), - ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: false, collation: "tr-x-icu") - }, - constraints: table => - { - table.PrimaryKey("PK_OpenIddictTokens", x => x.Id); - table.ForeignKey( - name: "FK_OpenIddictTokens_OpenIddictApplications_ApplicationId", - column: x => x.ApplicationId, - principalTable: "OpenIddictApplications", - principalColumn: "Id"); - table.ForeignKey( - name: "FK_OpenIddictTokens_OpenIddictAuthorizations_AuthorizationId", - column: x => x.AuthorizationId, - principalTable: "OpenIddictAuthorizations", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_BackgroundWorker_MailQueueEvents", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - AwsMessageId = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - EventDate = table.Column(type: "timestamp with time zone", nullable: true), - Event = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - MailAddress = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - ResponseDescription = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_BackgroundWorker_MailQueueEvents", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_BackgroundWorker_MailQueueEvents_Sas_H_BackgroundWork~", - column: x => x.AwsMessageId, - principalTable: "Sas_H_BackgroundWorker_MailQueue", - principalColumn: "AwsMessageId", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_City", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Country = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - PlateCode = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, collation: "tr-x-icu"), - CountryId = table.Column(type: "character varying(128)", nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_City", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_City_Sas_H_Country_CountryId", - column: x => x.CountryId, - principalTable: "Sas_H_Country", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_ListFormImportLog", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - ImportId = table.Column(type: "uuid", nullable: false), - BlobName = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - Status = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - ExecRows = table.Column(type: "integer", nullable: false), - ValidRows = table.Column(type: "integer", nullable: false), - ErrorRows = table.Column(type: "integer", nullable: false), - Progress = table.Column(type: "double precision", nullable: false), - ErrorsJson = table.Column(type: "text", nullable: true, collation: "tr-x-icu"), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_ListFormImportLog", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_ListFormImportLog_Sas_H_ListFormImport_ImportId", - column: x => x.ImportId, - principalTable: "Sas_H_ListFormImport", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_Notification", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - NotificationRuleId = table.Column(type: "uuid", nullable: false), - NotificationChannel = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "tr-x-icu"), - NotificationTypeId = table.Column(type: "uuid", nullable: false), - Identifier = table.Column(type: "character varying(256)", maxLength: 256, nullable: false, collation: "tr-x-icu"), - UserId = table.Column(type: "uuid", nullable: true), - Message = table.Column(type: "character varying(2048)", maxLength: 2048, nullable: false, collation: "tr-x-icu"), - IsSent = table.Column(type: "boolean", nullable: false), - IsRead = table.Column(type: "boolean", nullable: false), - ReadTime = table.Column(type: "timestamp with time zone", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_Notification", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_Notification_Sas_H_NotificationRule_NotificationRuleId", - column: x => x.NotificationRuleId, - principalTable: "Sas_H_NotificationRule", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Sas_H_Notification_Sas_H_NotificationType_NotificationTypeId", - column: x => x.NotificationTypeId, - principalTable: "Sas_H_NotificationType", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "Sas_T_ForumPost", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - TopicId = table.Column(type: "uuid", nullable: false), - Content = table.Column(type: "text", nullable: false, collation: "tr-x-icu"), - AuthorId = table.Column(type: "uuid", nullable: false), - AuthorName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - LikeCount = table.Column(type: "integer", nullable: true), - IsAcceptedAnswer = table.Column(type: "boolean", nullable: true), - ParentPostId = table.Column(type: "uuid", nullable: true), - TenantId = table.Column(type: "uuid", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_T_ForumPost", x => x.Id); - table.ForeignKey( - name: "FK_Sas_T_ForumPost_Sas_T_ForumPost_ParentPostId", - column: x => x.ParentPostId, - principalTable: "Sas_T_ForumPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_Sas_T_ForumPost_Sas_T_ForumTopic_TopicId", - column: x => x.TopicId, - principalTable: "Sas_T_ForumTopic", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Sas_H_District", - columns: table => new - { - Id = table.Column(type: "uuid", nullable: false), - Country = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - City = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false, collation: "tr-x-icu"), - Township = table.Column(type: "character varying(128)", maxLength: 128, nullable: true, collation: "tr-x-icu"), - CityId = table.Column(type: "uuid", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), - LastModifierId = table.Column(type: "uuid", nullable: true), - IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Sas_H_District", x => x.Id); - table.ForeignKey( - name: "FK_Sas_H_District_Sas_H_City_CityId", - column: x => x.CityId, - principalTable: "Sas_H_City", - principalColumn: "Id"); - }); - - migrationBuilder.CreateIndex( - name: "IX_AbpAuditLogActions_AuditLogId", - table: "AbpAuditLogActions", - column: "AuditLogId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_Executio~", - table: "AbpAuditLogActions", - columns: new[] { "TenantId", "ServiceName", "MethodName", "ExecutionTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpAuditLogs_TenantId_ExecutionTime", - table: "AbpAuditLogs", - columns: new[] { "TenantId", "ExecutionTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpAuditLogs_TenantId_UserId_ExecutionTime", - table: "AbpAuditLogs", - columns: new[] { "TenantId", "UserId", "ExecutionTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpBackgroundJobs_IsAbandoned_NextTryTime", - table: "AbpBackgroundJobs", - columns: new[] { "IsAbandoned", "NextTryTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityChanges_AuditLogId", - table: "AbpEntityChanges", - column: "AuditLogId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityChanges_TenantId_EntityTypeFullName_EntityId", - table: "AbpEntityChanges", - columns: new[] { "TenantId", "EntityTypeFullName", "EntityId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityPropertyChanges_EntityChangeId", - table: "AbpEntityPropertyChanges", - column: "EntityChangeId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpFeatureGroups_Name", - table: "AbpFeatureGroups", - column: "Name", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_AbpFeatures_GroupName", - table: "AbpFeatures", - column: "GroupName"); - - migrationBuilder.CreateIndex( - name: "IX_AbpFeatures_Name", - table: "AbpFeatures", - column: "Name", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey", - table: "AbpFeatureValues", - columns: new[] { "Name", "ProviderName", "ProviderKey" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_Targe~", - table: "AbpLinkUsers", - columns: new[] { "SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId", - table: "AbpOrganizationUnitRoles", - columns: new[] { "RoleId", "OrganizationUnitId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnits_Code", - table: "AbpOrganizationUnits", - column: "Code"); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnits_ParentId", - table: "AbpOrganizationUnits", - column: "ParentId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpPermissionGrants_TenantId_Name_ProviderName_ProviderKey", - table: "AbpPermissionGrants", - columns: new[] { "TenantId", "Name", "ProviderName", "ProviderKey" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_AbpPermissionGroups_Name", - table: "AbpPermissionGroups", - column: "Name", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_AbpPermissions_GroupName", - table: "AbpPermissions", - column: "GroupName"); - - migrationBuilder.CreateIndex( - name: "IX_AbpPermissions_Name", - table: "AbpPermissions", - column: "Name", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoleClaims_RoleId", - table: "AbpRoleClaims", - column: "RoleId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoles_NormalizedName", - table: "AbpRoles", - column: "NormalizedName"); - - migrationBuilder.CreateIndex( - name: "IX_AbpSecurityLogs_TenantId_Action", - table: "AbpSecurityLogs", - columns: new[] { "TenantId", "Action" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpSecurityLogs_TenantId_ApplicationName", - table: "AbpSecurityLogs", - columns: new[] { "TenantId", "ApplicationName" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpSecurityLogs_TenantId_Identity", - table: "AbpSecurityLogs", - columns: new[] { "TenantId", "Identity" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpSecurityLogs_TenantId_UserId", - table: "AbpSecurityLogs", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpSessions_Device", - table: "AbpSessions", - column: "Device"); - - migrationBuilder.CreateIndex( - name: "IX_AbpSessions_SessionId", - table: "AbpSessions", - column: "SessionId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpSessions_TenantId_UserId", - table: "AbpSessions", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpSettingDefinitions_Name", - table: "AbpSettingDefinitions", - column: "Name", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_AbpSettings_Name_ProviderName_ProviderKey", - table: "AbpSettings", - columns: new[] { "Name", "ProviderName", "ProviderKey" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenants_Name", - table: "AbpTenants", - column: "Name"); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenants_NormalizedName", - table: "AbpTenants", - column: "NormalizedName"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserClaims_UserId", - table: "AbpUserClaims", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserLogins_LoginProvider_ProviderKey", - table: "AbpUserLogins", - columns: new[] { "LoginProvider", "ProviderKey" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserOrganizationUnits_UserId_OrganizationUnitId", - table: "AbpUserOrganizationUnits", - columns: new[] { "UserId", "OrganizationUnitId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserRoles_RoleId_UserId", - table: "AbpUserRoles", - columns: new[] { "RoleId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_Email", - table: "AbpUsers", - column: "Email"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_NormalizedEmail", - table: "AbpUsers", - column: "NormalizedEmail"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_NormalizedUserName", - table: "AbpUsers", - column: "NormalizedUserName"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_UserName", - table: "AbpUsers", - column: "UserName"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_Announcement_TenantId_Title", - table: "Adm_T_Announcement", - columns: new[] { "TenantId", "Title" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_Department_TenantId_Name", - table: "Adm_T_Department", - columns: new[] { "TenantId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_Event_CategoryId", - table: "Adm_T_Event", - column: "CategoryId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_Event_TenantId_CategoryId_TypeId_Name", - table: "Adm_T_Event", - columns: new[] { "TenantId", "CategoryId", "TypeId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_Event_TypeId", - table: "Adm_T_Event", - column: "TypeId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_EventCategory_TenantId_Name", - table: "Adm_T_EventCategory", - columns: new[] { "TenantId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_EventComment_EventId", - table: "Adm_T_EventComment", - column: "EventId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_EventLike_EventId", - table: "Adm_T_EventLike", - column: "EventId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_EventType_TenantId_Name", - table: "Adm_T_EventType", - columns: new[] { "TenantId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_IpRestriction_TenantId_ResourceType_ResourceId_IP", - table: "Adm_T_IpRestriction", - columns: new[] { "TenantId", "ResourceType", "ResourceId", "IP" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_JobPosition_DepartmentId", - table: "Adm_T_JobPosition", - column: "DepartmentId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_JobPosition_TenantId_Name_DepartmentId", - table: "Adm_T_JobPosition", - columns: new[] { "TenantId", "Name", "DepartmentId" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_ReportCategory_TenantId_Name", - table: "Adm_T_ReportCategory", - columns: new[] { "TenantId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_ReportTemplate_CategoryId", - table: "Adm_T_ReportTemplate", - column: "CategoryId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_ReportTemplate_TenantId_Name", - table: "Adm_T_ReportTemplate", - columns: new[] { "TenantId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_Sector_TenantId_Name", - table: "Adm_T_Sector", - columns: new[] { "TenantId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_Sequence_TenantId_Name", - table: "Adm_T_Sequence", - columns: new[] { "TenantId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_SocialComment_SocialPostId", - table: "Adm_T_SocialComment", - column: "SocialPostId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_SocialLike_SocialPostId", - table: "Adm_T_SocialLike", - column: "SocialPostId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_SocialLocation_SocialPostId", - table: "Adm_T_SocialLocation", - column: "SocialPostId", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_SocialMedia_SocialPostId", - table: "Adm_T_SocialMedia", - column: "SocialPostId", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_SocialPollOption_SocialMediaId", - table: "Adm_T_SocialPollOption", - column: "SocialMediaId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_Survey_TenantId_Title", - table: "Adm_T_Survey", - columns: new[] { "TenantId", "Title" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_SurveyAnswer_QuestionId", - table: "Adm_T_SurveyAnswer", - column: "QuestionId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_SurveyAnswer_ResponseId", - table: "Adm_T_SurveyAnswer", - column: "ResponseId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_SurveyQuestion_SurveyId", - table: "Adm_T_SurveyQuestion", - column: "SurveyId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_SurveyQuestionOption_QuestionId", - table: "Adm_T_SurveyQuestionOption", - column: "QuestionId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_SurveyResponse_SurveyId", - table: "Adm_T_SurveyResponse", - column: "SurveyId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_Videoroom_TenantId_BranchId_Name", - table: "Adm_T_Videoroom", - columns: new[] { "TenantId", "BranchId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_VideoroomAttandance_SessionId", - table: "Adm_T_VideoroomAttandance", - column: "SessionId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_VideoroomChat_SessionId", - table: "Adm_T_VideoroomChat", - column: "SessionId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_VideoroomParticipant_SessionId", - table: "Adm_T_VideoroomParticipant", - column: "SessionId"); - - migrationBuilder.CreateIndex( - name: "IX_Adm_T_WorkHour_TenantId_Name", - table: "Adm_T_WorkHour", - columns: new[] { "TenantId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_OpenIddictApplications_ClientId", - table: "OpenIddictApplications", - column: "ClientId"); - - migrationBuilder.CreateIndex( - name: "IX_OpenIddictAuthorizations_ApplicationId_Status_Subject_Type", - table: "OpenIddictAuthorizations", - columns: new[] { "ApplicationId", "Status", "Subject", "Type" }); - - migrationBuilder.CreateIndex( - name: "IX_OpenIddictScopes_Name", - table: "OpenIddictScopes", - column: "Name"); - - migrationBuilder.CreateIndex( - name: "IX_OpenIddictTokens_ApplicationId_Status_Subject_Type", - table: "OpenIddictTokens", - columns: new[] { "ApplicationId", "Status", "Subject", "Type" }); - - migrationBuilder.CreateIndex( - name: "IX_OpenIddictTokens_AuthorizationId", - table: "OpenIddictTokens", - column: "AuthorizationId"); - - migrationBuilder.CreateIndex( - name: "IX_OpenIddictTokens_ReferenceId", - table: "OpenIddictTokens", - column: "ReferenceId"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_AiBot_Name", - table: "Sas_H_AiBot", - column: "Name", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_BackgroundWorker_Name", - table: "Sas_H_BackgroundWorker", - column: "Name", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_BackgroundWorker_MailQueue_TableName", - table: "Sas_H_BackgroundWorker_MailQueue", - column: "TableName"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_BackgroundWorker_MailQueueEvents_AwsMessageId", - table: "Sas_H_BackgroundWorker_MailQueueEvents", - column: "AwsMessageId"); - - migrationBuilder.CreateIndex( - name: "IX_MailQueueTableFormat", - table: "Sas_H_BackgroundWorker_MailQueueTableFormat", - columns: new[] { "TableName", "Order" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_BlogCategory_Name", - table: "Sas_H_BlogCategory", - column: "Name", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_BlogPost_CategoryId_Title", - table: "Sas_H_BlogPost", - columns: new[] { "CategoryId", "Title" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_City_Country_Name", - table: "Sas_H_City", - columns: new[] { "Country", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_City_CountryId", - table: "Sas_H_City", - column: "CountryId"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_ContactTitle_Title", - table: "Sas_H_ContactTitle", - column: "Title", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_Country_GroupName", - table: "Sas_H_Country", - column: "GroupName"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_Country_Name", - table: "Sas_H_Country", - column: "Name", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_CountryGroup_Name", - table: "Sas_H_CountryGroup", - column: "Name", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_CrudEndpoint_TenantId_EntityName_Method_Path", - table: "Sas_H_CrudEndpoint", - columns: new[] { "TenantId", "EntityName", "Method", "Path" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_Currency_Id_Name", - table: "Sas_H_Currency", - columns: new[] { "Id", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_CustomComponent_TenantId_Name", - table: "Sas_H_CustomComponent", - columns: new[] { "TenantId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_CustomEndpoint_TenantId_Name", - table: "Sas_H_CustomEndpoint", - columns: new[] { "TenantId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_DataSource_Code", - table: "Sas_H_DataSource", - column: "Code", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_District_CityId", - table: "Sas_H_District", - column: "CityId"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_District_Country_City_Name_Township", - table: "Sas_H_District", - columns: new[] { "Country", "City", "Name", "Township" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_DynamicService_TenantId_Name", - table: "Sas_H_DynamicService", - columns: new[] { "TenantId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_InstallmentOption_Name", - table: "Sas_H_InstallmentOption", - column: "Name", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_LanguageKey_ResourceName_Key", - table: "Sas_H_LanguageKey", - columns: new[] { "ResourceName", "Key" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_LanguageText_CultureName", - table: "Sas_H_LanguageText", - column: "CultureName"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_LanguageText_ResourceName_Key", - table: "Sas_H_LanguageText", - columns: new[] { "ResourceName", "Key" }); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_ListForm_ListFormCode", - table: "Sas_H_ListForm", - column: "ListFormCode", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_ListFormCustomization_ListFormCode", - table: "Sas_H_ListFormCustomization", - column: "ListFormCode"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_ListFormField_ListFormCode_UserId_RoleId_CultureName_~", - table: "Sas_H_ListFormField", - columns: new[] { "ListFormCode", "UserId", "RoleId", "CultureName", "FieldName" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_ListFormImport_ListFormCode", - table: "Sas_H_ListFormImport", - column: "ListFormCode"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_ListFormImportLog_ImportId", - table: "Sas_H_ListFormImportLog", - column: "ImportId"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_Menu_Code", - table: "Sas_H_Menu", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_MenuGroup_Name", - table: "Sas_H_MenuGroup", - column: "Name", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_Notification_NotificationRuleId", - table: "Sas_H_Notification", - column: "NotificationRuleId"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_Notification_NotificationTypeId", - table: "Sas_H_Notification", - column: "NotificationTypeId"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_NotificationRule_NotificationTypeId", - table: "Sas_H_NotificationRule", - column: "NotificationTypeId"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_OrderItem_OrderId", - table: "Sas_H_OrderItem", - column: "OrderId"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_PaymentMethod_Name", - table: "Sas_H_PaymentMethod", - column: "Name", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_Product_Name", - table: "Sas_H_Product", - column: "Name", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_Route_Key", - table: "Sas_H_Route", - column: "Key", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_Route_Path", - table: "Sas_H_Route", - column: "Path", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_Service_Title", - table: "Sas_H_Service", - column: "Title", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_Skill_SkillTypeId_Name", - table: "Sas_H_Skill", - columns: new[] { "SkillTypeId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_SkillLevel_SkillTypeId_Name", - table: "Sas_H_SkillLevel", - columns: new[] { "SkillTypeId", "Name" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_SkillType_Name", - table: "Sas_H_SkillType", - column: "Name", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_Uom_Name_UomCategoryId", - table: "Sas_H_Uom", - columns: new[] { "Name", "UomCategoryId" }, - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_Uom_UomCategoryId", - table: "Sas_H_Uom", - column: "UomCategoryId"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_H_UomCategory_Name", - table: "Sas_H_UomCategory", - column: "Name", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_T_Branch_Code", - table: "Sas_T_Branch", - column: "Code", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_T_BranchUsers_BranchId", - table: "Sas_T_BranchUsers", - column: "BranchId"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_T_BranchUsers_TenantId_BranchId_UserId", - table: "Sas_T_BranchUsers", - columns: new[] { "TenantId", "BranchId", "UserId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Sas_T_ForumCategory_Name", - table: "Sas_T_ForumCategory", - column: "Name", - unique: true, - filter: "\"IsDeleted\" = FALSE"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_T_ForumPost_ParentPostId", - table: "Sas_T_ForumPost", - column: "ParentPostId"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_T_ForumPost_TopicId", - table: "Sas_T_ForumPost", - column: "TopicId"); - - migrationBuilder.CreateIndex( - name: "IX_Sas_T_ForumTopic_CategoryId", - table: "Sas_T_ForumTopic", - column: "CategoryId"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "AbpAuditLogActions"); - - migrationBuilder.DropTable( - name: "AbpAuditLogExcelFiles"); - - migrationBuilder.DropTable( - name: "AbpBackgroundJobs"); - - migrationBuilder.DropTable( - name: "AbpClaimTypes"); - - migrationBuilder.DropTable( - name: "AbpEntityPropertyChanges"); - - migrationBuilder.DropTable( - name: "AbpFeatureGroups"); - - migrationBuilder.DropTable( - name: "AbpFeatures"); - - migrationBuilder.DropTable( - name: "AbpFeatureValues"); - - migrationBuilder.DropTable( - name: "AbpLinkUsers"); - - migrationBuilder.DropTable( - name: "AbpOrganizationUnitRoles"); - - migrationBuilder.DropTable( - name: "AbpPermissionGrants"); - - migrationBuilder.DropTable( - name: "AbpPermissionGroups"); - - migrationBuilder.DropTable( - name: "AbpPermissions"); - - migrationBuilder.DropTable( - name: "AbpRoleClaims"); - - migrationBuilder.DropTable( - name: "AbpSecurityLogs"); - - migrationBuilder.DropTable( - name: "AbpSessions"); - - migrationBuilder.DropTable( - name: "AbpSettingDefinitions"); - - migrationBuilder.DropTable( - name: "AbpSettings"); - - migrationBuilder.DropTable( - name: "AbpTenantConnectionStrings"); - - migrationBuilder.DropTable( - name: "AbpUserClaims"); - - migrationBuilder.DropTable( - name: "AbpUserDelegations"); - - migrationBuilder.DropTable( - name: "AbpUserLogins"); - - migrationBuilder.DropTable( - name: "AbpUserOrganizationUnits"); - - migrationBuilder.DropTable( - name: "AbpUserRoles"); - - migrationBuilder.DropTable( - name: "AbpUserTokens"); - - migrationBuilder.DropTable( - name: "Adm_T_Announcement"); - - migrationBuilder.DropTable( - name: "Adm_T_EventComment"); - - migrationBuilder.DropTable( - name: "Adm_T_EventLike"); - - migrationBuilder.DropTable( - name: "Adm_T_IpRestriction"); - - migrationBuilder.DropTable( - name: "Adm_T_JobPosition"); - - migrationBuilder.DropTable( - name: "Adm_T_Note"); - - migrationBuilder.DropTable( - name: "Adm_T_ReportTemplate"); - - migrationBuilder.DropTable( - name: "Adm_T_Sector"); - - migrationBuilder.DropTable( - name: "Adm_T_Sequence"); - - migrationBuilder.DropTable( - name: "Adm_T_SocialComment"); - - migrationBuilder.DropTable( - name: "Adm_T_SocialLike"); - - migrationBuilder.DropTable( - name: "Adm_T_SocialLocation"); - - migrationBuilder.DropTable( - name: "Adm_T_SocialPollOption"); - - migrationBuilder.DropTable( - name: "Adm_T_SurveyAnswer"); - - migrationBuilder.DropTable( - name: "Adm_T_SurveyQuestionOption"); - - migrationBuilder.DropTable( - name: "Adm_T_VideoroomAttandance"); - - migrationBuilder.DropTable( - name: "Adm_T_VideoroomChat"); - - migrationBuilder.DropTable( - name: "Adm_T_VideoroomParticipant"); - - migrationBuilder.DropTable( - name: "Adm_T_WorkHour"); - - migrationBuilder.DropTable( - name: "OpenIddictScopes"); - - migrationBuilder.DropTable( - name: "OpenIddictTokens"); - - migrationBuilder.DropTable( - name: "Sas_H_About"); - - migrationBuilder.DropTable( - name: "Sas_H_AiBot"); - - migrationBuilder.DropTable( - name: "Sas_H_BackgroundWorker"); - - migrationBuilder.DropTable( - name: "Sas_H_BackgroundWorker_MailQueueEvents"); - - migrationBuilder.DropTable( - name: "Sas_H_BlogPost"); - - migrationBuilder.DropTable( - name: "Sas_H_Contact"); - - migrationBuilder.DropTable( - name: "Sas_H_ContactTitle"); - - migrationBuilder.DropTable( - name: "Sas_H_CrudEndpoint"); - - migrationBuilder.DropTable( - name: "Sas_H_Currency"); - - migrationBuilder.DropTable( - name: "Sas_H_CustomComponent"); - - migrationBuilder.DropTable( - name: "Sas_H_CustomEndpoint"); - - migrationBuilder.DropTable( - name: "Sas_H_DataSource"); - - migrationBuilder.DropTable( - name: "Sas_H_Demo"); - - migrationBuilder.DropTable( - name: "Sas_H_District"); - - migrationBuilder.DropTable( - name: "Sas_H_DynamicService"); - - migrationBuilder.DropTable( - name: "Sas_H_Home"); - - migrationBuilder.DropTable( - name: "Sas_H_InstallmentOption"); - - migrationBuilder.DropTable( - name: "Sas_H_LanguageText"); - - migrationBuilder.DropTable( - name: "Sas_H_ListFormCustomization"); - - migrationBuilder.DropTable( - name: "Sas_H_ListFormField"); - - migrationBuilder.DropTable( - name: "Sas_H_ListFormImportLog"); - - migrationBuilder.DropTable( - name: "Sas_H_ListFormWorkflow"); - - migrationBuilder.DropTable( - name: "Sas_H_LogEntry"); - - migrationBuilder.DropTable( - name: "Sas_H_Menu"); - - migrationBuilder.DropTable( - name: "Sas_H_MenuGroup"); - - migrationBuilder.DropTable( - name: "Sas_H_Notification"); - - migrationBuilder.DropTable( - name: "Sas_H_OrderItem"); - - migrationBuilder.DropTable( - name: "Sas_H_PaymentMethod"); - - migrationBuilder.DropTable( - name: "Sas_H_Product"); - - migrationBuilder.DropTable( - name: "Sas_H_Route"); - - migrationBuilder.DropTable( - name: "Sas_H_Service"); - - migrationBuilder.DropTable( - name: "Sas_H_SettingDefinition"); - - migrationBuilder.DropTable( - name: "Sas_H_Skill"); - - migrationBuilder.DropTable( - name: "Sas_H_SkillLevel"); - - migrationBuilder.DropTable( - name: "Sas_H_Uom"); - - migrationBuilder.DropTable( - name: "Sas_T_BranchUsers"); - - migrationBuilder.DropTable( - name: "Sas_T_ForumPost"); - - migrationBuilder.DropTable( - name: "Sas_T_GlobalSearch"); - - migrationBuilder.DropTable( - name: "AbpEntityChanges"); - - migrationBuilder.DropTable( - name: "AbpTenants"); - - migrationBuilder.DropTable( - name: "AbpOrganizationUnits"); - - migrationBuilder.DropTable( - name: "AbpRoles"); - - migrationBuilder.DropTable( - name: "AbpUsers"); - - migrationBuilder.DropTable( - name: "Adm_T_Event"); - - migrationBuilder.DropTable( - name: "Adm_T_Department"); - - migrationBuilder.DropTable( - name: "Adm_T_ReportCategory"); - - migrationBuilder.DropTable( - name: "Adm_T_SocialMedia"); - - migrationBuilder.DropTable( - name: "Adm_T_SurveyResponse"); - - migrationBuilder.DropTable( - name: "Adm_T_SurveyQuestion"); - - migrationBuilder.DropTable( - name: "Adm_T_Videoroom"); - - migrationBuilder.DropTable( - name: "OpenIddictAuthorizations"); - - migrationBuilder.DropTable( - name: "Sas_H_BackgroundWorker_MailQueue"); - - migrationBuilder.DropTable( - name: "Sas_H_BlogCategory"); - - migrationBuilder.DropTable( - name: "Sas_H_City"); - - migrationBuilder.DropTable( - name: "Sas_H_LanguageKey"); - - migrationBuilder.DropTable( - name: "Sas_H_Language"); - - migrationBuilder.DropTable( - name: "Sas_H_ListFormImport"); - - migrationBuilder.DropTable( - name: "Sas_H_NotificationRule"); - - migrationBuilder.DropTable( - name: "Sas_H_Order"); - - migrationBuilder.DropTable( - name: "Sas_H_SkillType"); - - migrationBuilder.DropTable( - name: "Sas_H_UomCategory"); - - migrationBuilder.DropTable( - name: "Sas_T_Branch"); - - migrationBuilder.DropTable( - name: "Sas_T_ForumTopic"); - - migrationBuilder.DropTable( - name: "AbpAuditLogs"); - - migrationBuilder.DropTable( - name: "Adm_T_EventCategory"); - - migrationBuilder.DropTable( - name: "Adm_T_EventType"); - - migrationBuilder.DropTable( - name: "Adm_T_SocialPost"); - - migrationBuilder.DropTable( - name: "Adm_T_Survey"); - - migrationBuilder.DropTable( - name: "OpenIddictApplications"); - - migrationBuilder.DropTable( - name: "Sas_H_BackgroundWorker_MailQueueTableFormat"); - - migrationBuilder.DropTable( - name: "Sas_H_Country"); - - migrationBuilder.DropTable( - name: "Sas_H_ListForm"); - - migrationBuilder.DropTable( - name: "Sas_H_NotificationType"); - - migrationBuilder.DropTable( - name: "Sas_T_ForumCategory"); - - migrationBuilder.DropTable( - name: "Sas_H_CountryGroup"); - } - } -} diff --git a/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260525115708_Initial.Designer.cs b/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260525143351_Initial.Designer.cs similarity index 64% rename from api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260525115708_Initial.Designer.cs rename to api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260525143351_Initial.Designer.cs index 4c690dc..aac7020 100644 --- a/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260525115708_Initial.Designer.cs +++ b/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260525143351_Initial.Designer.cs @@ -2,9 +2,9 @@ using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Sozsoft.Platform.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore; @@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; namespace Sozsoft.Platform.Migrations { [DbContext(typeof(PlatformDbContext))] - [Migration("20260525115708_Initial")] + [Migration("20260525143351_Initial")] partial class Initial { /// @@ -21,75 +21,72 @@ namespace Sozsoft.Platform.Migrations { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql) + .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) .HasAnnotation("ProductVersion", "10.0.4") - .HasAnnotation("Relational:MaxIdentifierLength", 63); + .HasAnnotation("Relational:MaxIdentifierLength", 128); - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("Sequence", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("FormatTemplate") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasDefaultValue("{Prefix}{Number}{Suffix}") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasDefaultValue("{Prefix}{Number}{Suffix}"); b.Property("IncrementStep") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(1); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LastPeriodKey") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("NextNumber") .ValueGeneratedOnAdd() @@ -98,17 +95,16 @@ namespace Sozsoft.Platform.Migrations b.Property("PaddingSize") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(6); b.Property("Prefix") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("ResetPeriod") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0); b.Property("StartNumber") @@ -116,18 +112,17 @@ namespace Sozsoft.Platform.Migrations b.Property("Suffix") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_Sequence", (string)null); }); @@ -136,34 +131,30 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CultureName") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("DisplayName") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("IsEnabled") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("TwoLetterISOLanguageName") .IsRequired() .HasMaxLength(2) - .HasColumnType("character varying(2)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2)"); b.Property("UiCultureName") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.HasKey("Id"); @@ -174,19 +165,17 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Key") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ResourceName") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -200,29 +189,25 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CultureName") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("Key") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ResourceName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Value") .IsRequired() .HasMaxLength(4096) - .HasColumnType("character varying(4096)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.HasKey("Id"); @@ -237,94 +222,85 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Attachment") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("AttachmentParameter") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("AwsMessageId") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("From") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MailParameter") .HasMaxLength(8192) - .HasColumnType("character varying(8192)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("RelatedRecordId") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("SendStatus") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("SendTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("TableName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TableParameter") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("TemplateId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("To") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -337,60 +313,56 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AwsMessageId") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Event") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("EventDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MailAddress") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ResponseDescription") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.HasKey("Id"); @@ -403,67 +375,58 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("integer"); + .HasColumnType("int"); - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("Caption") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ColumnName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Css") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("DataFormat") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("DataType") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("FooterCss") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("HeaderCss") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("IsHidden") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsProtected") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Order") .HasColumnType("smallint"); b.Property("SubTotal") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("TableName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Width") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); @@ -478,73 +441,70 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Identifier") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsRead") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsSent") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Message") .IsRequired() .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("NotificationChannel") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("NotificationRuleId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("NotificationTypeId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ReadTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -559,66 +519,63 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Channel") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsCustomized") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsFixed") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("NotificationTypeId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("RecipientId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("RecipientType") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -631,43 +588,42 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -677,49 +633,46 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.About", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DescriptionsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("SectionsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("StatsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.HasKey("Id"); @@ -729,26 +682,23 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.AiBot", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ApiUrl") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Description") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -761,97 +711,91 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Announcement", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Attachments") .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("Category") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Content") .IsRequired() .HasMaxLength(4096) - .HasColumnType("character varying(4096)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Excerpt") .IsRequired() .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("ExpiryDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ImageUrl") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsPinned") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("PublishDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Title") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ViewCount") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0); b.HasKey("Id"); b.HasIndex("TenantId", "Title") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_Announcement", (string)null); }); @@ -859,82 +803,76 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.BackgroundWorker", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AfterSp") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("BeforeSp") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("Cron") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("DataSourceCode") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Options") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("WorkerType") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_BackgroundWorker", (string)null); }); @@ -942,74 +880,70 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.BlogCategory", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("DisplayOrder") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Icon") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("PostCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Slug") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_BlogCategory", (string)null); }); @@ -1017,103 +951,95 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.BlogPost", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Author") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CategoryId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CommentCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ContentEn") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("ContentTr") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CoverImage") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsPublished") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LikeCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("PublishedAt") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ReadTime") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Slug") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Summary") .IsRequired() .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("Title") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ViewCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("CategoryId", "Title") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_BlogPost", (string)null); }); @@ -1121,132 +1047,117 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Branch", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Address1") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("Address2") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("City") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Code") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Country") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("District") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Email") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("FaxNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MobileNumber") .IsRequired() .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("PhoneNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("PostalCode") .HasMaxLength(16) - .HasColumnType("character varying(16)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(16)"); b.Property("TaxOffice") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Township") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("VknTckn") .HasColumnType("bigint"); b.Property("Website") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("Code") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_T_Branch", (string)null); }); @@ -1254,17 +1165,17 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.BranchUsers", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("BranchId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -1279,57 +1190,53 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.City", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Country") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CountryId") - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("PlateCode") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.HasKey("Id"); @@ -1337,7 +1244,7 @@ namespace Sozsoft.Platform.Migrations b.HasIndex("Country", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_City", (string)null); }); @@ -1345,72 +1252,65 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Contact", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Address") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("BankJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Email") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Location") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("MapJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PhoneNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("TaxNumber") .HasColumnType("bigint"); b.Property("WorkHoursJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.HasKey("Id"); @@ -1420,54 +1320,52 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ContactTitle", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Abbreviation") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Title") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("Title") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_ContactTitle", (string)null); }); @@ -1476,69 +1374,64 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("Currency") .IsRequired() .HasMaxLength(8) - .HasColumnType("character varying(8)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("GroupName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("PhoneCode") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("StateRequired") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("TaxLabel") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ZipRequired") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.HasKey("Id"); @@ -1546,7 +1439,7 @@ namespace Sozsoft.Platform.Migrations b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_Country", (string)null); }); @@ -1554,50 +1447,48 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.CountryGroup", b => { b.Property("Id") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(450)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_CountryGroup", (string)null); }); @@ -1605,79 +1496,74 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.CrudEndpoint", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CsharpCode") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("EntityName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Method") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("OperationType") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Path") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "EntityName", "Method", "Path") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_CrudEndpoint", (string)null); }); @@ -1686,67 +1572,64 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LastUpdated") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Rate") .HasPrecision(18, 6) - .HasColumnType("numeric(18,6)"); + .HasColumnType("decimal(18,6)"); b.Property("Symbol") .HasMaxLength(8) - .HasColumnType("character varying(8)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(8)"); b.HasKey("Id"); b.HasIndex("Id", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_Currency", (string)null); }); @@ -1754,76 +1637,71 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.CustomComponent", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Dependencies") .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("Description") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Props") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_CustomComponent", (string)null); }); @@ -1831,89 +1709,81 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.CustomEndpoint", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DataSourceCode") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Method") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ParametersJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PermissionsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("Sql") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Url") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_CustomEndpoint", (string)null); }); @@ -1921,57 +1791,55 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.DataSource", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ConnectionString") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DataSourceType") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.HasKey("Id"); b.HasIndex("Code") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_DataSource", (string)null); }); @@ -1979,79 +1847,73 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Demo", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Address") .IsRequired() .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Email") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Message") .IsRequired() .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("NumberOfBranches") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("NumberOfUsers") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("OrganizationName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("PhoneNumber") .IsRequired() .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.HasKey("Id"); @@ -2061,56 +1923,55 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Department", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ParentId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_Department", (string)null); }); @@ -2118,62 +1979,58 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.District", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("City") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CityId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Country") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Township") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -2181,7 +2038,7 @@ namespace Sozsoft.Platform.Migrations b.HasIndex("Country", "City", "Name", "Township") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_District", (string)null); }); @@ -2189,105 +2046,97 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.DynamicService", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CodeHash") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("CompilationStatus") .IsRequired() .HasMaxLength(20) - .HasColumnType("character varying(20)"); + .HasColumnType("nvarchar(20)"); b.Property("ControllerName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("DisplayName") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastCompilationError") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LastSuccessfulCompilation") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("PrimaryEntityType") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Version") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(1); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_DynamicService", (string)null); }); @@ -2295,88 +2144,83 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Event", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CategoryId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("Date") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Likes") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ParticipantsCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Photos") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("Place") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Status") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("TypeId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("isPublished") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.HasKey("Id"); @@ -2387,7 +2231,7 @@ namespace Sozsoft.Platform.Migrations b.HasIndex("TenantId", "CategoryId", "TypeId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_Event", (string)null); }); @@ -2395,53 +2239,52 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.EventCategory", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_EventCategory", (string)null); }); @@ -2449,57 +2292,56 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.EventComment", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Content") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("EventId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Likes") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -2511,47 +2353,47 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.EventLike", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("EventId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -2563,53 +2405,52 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.EventType", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_EventType", (string)null); }); @@ -2618,39 +2459,34 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("integer"); + .HasColumnType("int"); - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("Group") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("System") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Term") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Url") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("Weight") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -2660,99 +2496,86 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Home", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CtaButtonLabelKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("CtaSubtitleKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("CtaTitleKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("FeaturesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("FeaturesSubtitleKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("FeaturesTitleKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("HeroBackgroundImageKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("HeroPrimaryCtaKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("HeroSecondaryCtaKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("SlidesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SolutionsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SolutionsSubtitleKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("SolutionsTitleKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -2762,59 +2585,58 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.InstallmentOption", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Commission") .HasPrecision(5, 3) - .HasColumnType("numeric(5,3)"); + .HasColumnType("decimal(5,3)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Installment") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("TenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_InstallmentOption", (string)null); }); @@ -2822,64 +2644,61 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.IpRestriction", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IP") .IsRequired() .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("ResourceId") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("ResourceType") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "ResourceType", "ResourceId", "IP") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_IpRestriction", (string)null); }); @@ -2887,52 +2706,51 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.JobPosition", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DepartmentId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ParentId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -2941,7 +2759,7 @@ namespace Sozsoft.Platform.Migrations b.HasIndex("TenantId", "Name", "DepartmentId") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_JobPosition", (string)null); }); @@ -2949,376 +2767,297 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ListForm", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AdaptiveLayoutJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("AnimationJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("AnnotationsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ArgumentAxisJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ColumnOptionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CommandColumnJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CommonAnnotationsSettingsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CommonAxisSettingsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CommonJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CommonPaneSettingsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CommonSeriesSettingsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CrosshairJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CultureName") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("CustomJsSourcesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CustomStyleSourcesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("DataSourceCode") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("DataSourceJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("DefaultFilter") .IsUnicode(true) - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("DeleteAfterCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("DeleteBeforeCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("DeleteCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("DeleteFieldsDefaultValueJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("DeleteServiceAddress") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Description") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("EditingFormJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("EditingOptionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ExportJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ExtraFilterJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("FilterPanelJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("FilterRowJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("FormFieldsDefaultValueJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("FullHeight") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("GanttOptionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("GroupPanelJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("HeaderFilterJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("Height") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("InsertAfterCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("InsertBeforeCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("InsertCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("InsertFieldsDefaultValueJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("InsertServiceAddress") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("IsBranch") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsOrganizationUnit") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsSubForm") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsTenant") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("KeyFieldDbSourceType") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("KeyFieldName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("LayoutJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("LegendJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ListFormCode") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ListFormType") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("MarginJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("Name") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("PageSize") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(50); b.Property("PagerOptionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PanesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PermissionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PivotOptionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("RoleId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("RowJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("SchedulerOptionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("ScrollBarJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SearchPanelJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SelectCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SelectCommandType") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("SelectFieldsDefaultValueJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SelectionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SeriesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ShowNote") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("SizeJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SortMode") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("StateStoringJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SubFormsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SubFormsListFormType") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("TableName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Title") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("TitleJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("TooltipJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("TreeOptionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("UpdateAfterCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("UpdateBeforeCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("UpdateCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("UpdateFieldsDefaultValueJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("UpdateServiceAddress") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("UserId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ValueAxisJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("WidgetsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("Width") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("WorkflowJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ZoomAndPanJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.HasKey("Id"); @@ -3331,65 +3070,60 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ListFormCustomization", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomizationData") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CustomizationType") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("FilterName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("ListFormCode") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("RoleId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("UserId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -3401,169 +3135,143 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ListFormField", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Alignment") .ValueGeneratedOnAdd() .HasMaxLength(20) - .HasColumnType("character varying(20)") - .HasDefaultValue("left") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)") + .HasDefaultValue("left"); b.Property("AllowAdding") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("AllowEditing") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("AllowSearch") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.Property("BandName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CaptionName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ColumnCssClass") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ColumnCssValue") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ColumnCustomizationJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ColumnFilterJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ColumnHeaderJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ColumnStylingJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CultureName") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("EditorOptions") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("FieldName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Format") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("GroupSummaryJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("GroupingJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("JoinTableJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ListFormCode") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ListOrderNo") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(30); b.Property("LookupJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PermissionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PivotSettingsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PlaceHolder") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("RoleId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("SortDirection") .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("SortIndex") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("SourceDbType") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("TotalSummaryJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("UserId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ValidationRuleJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("Visible") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("Width") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(100); b.HasKey("Id"); @@ -3577,58 +3285,55 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ListFormImport", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("BlobName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("ListFormCode") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Status") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("TotalRows") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); @@ -3640,68 +3345,65 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ListFormImportLog", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("BlobName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("ErrorRows") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ErrorsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ExecRows") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ImportId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Progress") - .HasColumnType("double precision"); + .HasColumnType("float"); b.Property("Status") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ValidRows") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); @@ -3714,88 +3416,75 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("Approver") .IsRequired() .HasMaxLength(250) - .HasColumnType("character varying(250)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(250)"); b.Property("CompareColumn") .IsRequired() .HasMaxLength(100) - .HasColumnType("character varying(100)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(100)"); b.Property("CompareOperator") .IsRequired() .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("CompareOutcomesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CompareValue") .HasPrecision(18, 2) - .HasColumnType("numeric(18,2)"); + .HasColumnType("decimal(18,2)"); b.Property("Kind") .IsRequired() .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("ListFormCode") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("NextOnApprove") .IsRequired() .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("NextOnFalse") .IsRequired() .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("NextOnReject") .IsRequired() .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("NextOnStart") .IsRequired() .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("NextOnTrue") .IsRequired() .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("PositionX") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("PositionY") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Title") .IsRequired() .HasMaxLength(250) - .HasColumnType("character varying(250)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(250)"); b.HasKey("Id"); @@ -3805,30 +3494,25 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.LogEntry", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Exception") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Level") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Message") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("MessageTemplate") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Properties") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("TimeStamp") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.HasKey("Id"); @@ -3838,79 +3522,66 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Menu", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CssClass") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CultureName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("DisplayName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ElementId") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Icon") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("IsDisabled") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Order") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ParentCode") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("RequiredPermissionName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("RoleId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ShortName") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Target") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Url") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("UserId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -3923,14 +3594,12 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.MenuGroup", b => { b.Property("Id") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(450)"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -3943,75 +3612,69 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Note", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Content") .IsRequired() .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("EntityId") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("EntityName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("FilesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Subject") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Type") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -4021,146 +3684,129 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Order", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Address1") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("Address2") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("City") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Commission") .HasPrecision(18, 2) - .HasColumnType("numeric(18,2)"); + .HasColumnType("decimal(18,2)"); b.Property("Country") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("District") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Email") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("FaxNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("Founder") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Installment") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MenuGroup") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("MobileNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("Name") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("OrganizationName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("PaymentDataJson") .HasMaxLength(4096) - .HasColumnType("character varying(4096)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("PaymentMethodId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("PhoneNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("PostalCode") .HasMaxLength(16) - .HasColumnType("character varying(16)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(16)"); b.Property("Subtotal") .HasPrecision(18, 2) - .HasColumnType("numeric(18,2)"); + .HasColumnType("decimal(18,2)"); b.Property("TaxOffice") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Total") .HasPrecision(18, 2) - .HasColumnType("numeric(18,2)"); + .HasColumnType("decimal(18,2)"); b.Property("VknTckn") .HasColumnType("bigint"); b.Property("Website") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -4170,62 +3816,60 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.OrderItem", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("BillingCycle") .IsRequired() .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("OrderId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ProductId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ProductName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Quantity") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("TotalPrice") .HasPrecision(18, 2) - .HasColumnType("numeric(18,2)"); + .HasColumnType("decimal(18,2)"); b.HasKey("Id"); @@ -4237,58 +3881,56 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.PaymentMethod", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Commission") .HasPrecision(5, 3) - .HasColumnType("numeric(5,3)"); + .HasColumnType("decimal(5,3)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Logo") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("Name") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_PaymentMethod", (string)null); }); @@ -4296,79 +3938,75 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Product", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Category") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("ImageUrl") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsQuantityBased") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MonthlyPrice") .HasPrecision(18, 2) - .HasColumnType("numeric(18,2)"); + .HasColumnType("decimal(18,2)"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Order") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("YearlyPrice") .HasPrecision(18, 2) - .HasColumnType("numeric(18,2)"); + .HasColumnType("decimal(18,2)"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_Product", (string)null); }); @@ -4376,63 +4014,60 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ReportCategory", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(4096) - .HasColumnType("character varying(4096)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Icon") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_ReportCategory", (string)null); }); @@ -4440,64 +4075,60 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ReportTemplate", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CategoryId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("HtmlContent") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Status") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -4506,7 +4137,7 @@ namespace Sozsoft.Platform.Migrations b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_ReportTemplate", (string)null); }); @@ -4514,73 +4145,69 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Route", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Authority") - .HasColumnType("text"); + .HasColumnType("nvarchar(max)"); b.Property("ComponentPath") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("Key") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Path") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("RouteType") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); b.HasIndex("Key") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.HasIndex("Path") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_Route", (string)null); }); @@ -4588,53 +4215,52 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Sector", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_Sector", (string)null); }); @@ -4642,67 +4268,63 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Service", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("Features") - .HasColumnType("text"); + .HasColumnType("nvarchar(max)"); b.Property("Icon") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Title") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Type") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); b.HasIndex("Title") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_Service", (string)null); }); @@ -4711,56 +4333,53 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("SkillTypeId") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("SkillTypeId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_Skill", (string)null); }); @@ -4769,66 +4388,63 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDefault") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Progress") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0); b.Property("SkillTypeId") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("SkillTypeId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_SkillLevel", (string)null); }); @@ -4837,50 +4453,48 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_SkillType", (string)null); }); @@ -4888,53 +4502,52 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SocialComment", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Content") .IsRequired() .HasMaxLength(8192) - .HasColumnType("character varying(8192)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("SocialPostId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -4946,47 +4559,47 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SocialLike", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("SocialPostId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -4998,65 +4611,62 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SocialLocation", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Address") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Lat") - .HasColumnType("double precision"); + .HasColumnType("float"); b.Property("Lng") - .HasColumnType("double precision"); + .HasColumnType("float"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("PlaceId") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("SocialPostId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -5070,69 +4680,66 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SocialMedia", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("PollEndsAt") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("PollQuestion") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("PollTotalVotes") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("PollUserVoteId") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("SocialPostId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Type") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); - b.PrimitiveCollection("Urls") - .HasColumnType("text[]"); + b.PrimitiveCollection("Urls") + .HasColumnType("nvarchar(max)"); b.HasKey("Id"); @@ -5145,53 +4752,52 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SocialPollOption", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("SocialMediaId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Text") .IsRequired() .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("Votes") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); @@ -5203,65 +4809,64 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SocialPost", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Content") .IsRequired() .HasMaxLength(4096) - .HasColumnType("character varying(4096)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsLiked") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.Property("IsOwnPost") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LikeCount") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -5271,75 +4876,72 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Survey", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("Deadline") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("IsAnonymous") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Responses") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0); b.Property("Status") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Title") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); b.HasIndex("TenantId", "Title") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_Survey", (string)null); }); @@ -5347,59 +4949,57 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SurveyAnswer", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("QuestionId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("QuestionType") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ResponseId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Value") .IsRequired() .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.HasKey("Id"); @@ -5413,62 +5013,60 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SurveyQuestion", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsRequired") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Order") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("QuestionText") .IsRequired() .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("SurveyId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Type") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -5480,53 +5078,52 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SurveyQuestionOption", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Order") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("QuestionId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Text") .IsRequired() .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.HasKey("Id"); @@ -5538,50 +5135,50 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SurveyResponse", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("SubmissionTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("SurveyId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -5594,67 +5191,63 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Ratio") .HasPrecision(18, 6) - .HasColumnType("numeric(18,6)"); + .HasColumnType("decimal(18,6)"); b.Property("Rounding") .HasPrecision(18, 6) - .HasColumnType("numeric(18,6)"); + .HasColumnType("decimal(18,6)"); b.Property("Type") .IsRequired() .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("UomCategoryId") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -5662,7 +5255,7 @@ namespace Sozsoft.Platform.Migrations b.HasIndex("Name", "UomCategoryId") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_Uom", (string)null); }); @@ -5671,50 +5264,48 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_UomCategory", (string)null); }); @@ -5722,100 +5313,95 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Videoroom", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ActualEndTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ActualStartTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("BranchId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("Duration") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaxParticipants") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ParticipantCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ScheduledEndTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ScheduledStartTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("SettingsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Subject") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TeacherId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TeacherName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "BranchId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_Videoroom", (string)null); }); @@ -5823,65 +5409,64 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.VideoroomAttandance", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("BranchId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("JoinTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LeaveTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("SessionId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("StudentId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("StudentName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("TotalDurationMinutes") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); @@ -5893,81 +5478,77 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.VideoroomChat", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("BranchId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsTeacher") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Message") .IsRequired() .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("MessageType") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("RecipientId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("RecipientName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("SenderId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("SenderName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("SessionId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Timestamp") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.HasKey("Id"); @@ -5979,86 +5560,84 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.VideoroomParticipant", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("BranchId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ConnectionId") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("IsAudioMuted") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsHandRaised") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsKicked") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.Property("IsTeacher") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsVideoMuted") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("JoinTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("SessionId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("UserName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -6070,82 +5649,81 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.WorkHour", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("EndTime") .HasMaxLength(8) - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("Friday") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Monday") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Saturday") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("StartTime") .HasMaxLength(8) - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("Sunday") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Thursday") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Tuesday") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Wednesday") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_WorkHour", (string)null); }); @@ -6153,97 +5731,92 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Forum.ForumCategory", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("DisplayOrder") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Icon") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsLocked") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LastPostDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("LastPostId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("LastPostUserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("LastPostUserName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("PostCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Slug") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TopicCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_T_ForumCategory", (string)null); }); @@ -6251,65 +5824,63 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Forum.ForumPost", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AuthorId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AuthorName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Content") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsAcceptedAnswer") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LikeCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ParentPostId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TopicId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -6323,94 +5894,90 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Forum.ForumTopic", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AuthorId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AuthorName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CategoryId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Content") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsLocked") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsPinned") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsSolved") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LastPostDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("LastPostId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("LastPostUserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("LastPostUserName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("LikeCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ReplyCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("TenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Title") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ViewCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); @@ -6423,102 +5990,93 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DataType") .IsRequired() .HasMaxLength(16) - .HasColumnType("character varying(16)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(16)"); b.Property("DefaultValue") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DescriptionKey") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsEncrypted") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsInherited") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsVisibleToClients") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MainGroupKey") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("NameKey") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Order") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Providers") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("RequiredPermissionName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("SelectOptions") - .HasColumnType("text"); + .HasColumnType("nvarchar(max)"); b.Property("SubGroupKey") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -6529,129 +6087,114 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ApplicationName") .HasMaxLength(96) - .HasColumnType("character varying(96)") - .HasColumnName("ApplicationName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(96)") + .HasColumnName("ApplicationName"); b.Property("BrowserInfo") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("BrowserInfo") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)") + .HasColumnName("BrowserInfo"); b.Property("ClientId") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("ClientId") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("ClientId"); b.Property("ClientIpAddress") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("ClientIpAddress") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("ClientIpAddress"); b.Property("ClientName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("ClientName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)") + .HasColumnName("ClientName"); b.Property("Comments") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("Comments") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("Comments"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CorrelationId") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("CorrelationId") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("CorrelationId"); b.Property("Exceptions") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("ExecutionDuration") - .HasColumnType("integer") + .HasColumnType("int") .HasColumnName("ExecutionDuration"); b.Property("ExecutionTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("HttpMethod") .HasMaxLength(16) - .HasColumnType("character varying(16)") - .HasColumnName("HttpMethod") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(16)") + .HasColumnName("HttpMethod"); b.Property("HttpStatusCode") - .HasColumnType("integer") + .HasColumnType("int") .HasColumnName("HttpStatusCode"); b.Property("ImpersonatorTenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("ImpersonatorTenantId"); b.Property("ImpersonatorTenantName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("ImpersonatorTenantName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("ImpersonatorTenantName"); b.Property("ImpersonatorUserId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("ImpersonatorUserId"); b.Property("ImpersonatorUserName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("ImpersonatorUserName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("ImpersonatorUserName"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("TenantName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("TenantName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("TenantName"); b.Property("Url") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("Url") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("Url"); b.Property("UserId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("UserId"); b.Property("UserName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("UserName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("UserName"); b.HasKey("Id"); @@ -6666,44 +6209,41 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AuditLogId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("AuditLogId"); b.Property("ExecutionDuration") - .HasColumnType("integer") + .HasColumnType("int") .HasColumnName("ExecutionDuration"); b.Property("ExecutionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("ExecutionTime"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("MethodName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("MethodName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)") + .HasColumnName("MethodName"); b.Property("Parameters") .HasMaxLength(2000) - .HasColumnType("character varying(2000)") - .HasColumnName("Parameters") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2000)") + .HasColumnName("Parameters"); b.Property("ServiceName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("ServiceName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("ServiceName"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -6719,24 +6259,23 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("FileName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("FileName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("FileName"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -6748,42 +6287,40 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AuditLogId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("AuditLogId"); b.Property("ChangeTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("ChangeTime"); b.Property("ChangeType") - .HasColumnType("smallint") + .HasColumnType("tinyint") .HasColumnName("ChangeType"); b.Property("EntityId") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("EntityId") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)") + .HasColumnName("EntityId"); b.Property("EntityTenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("EntityTypeFullName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("EntityTypeFullName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)") + .HasColumnName("EntityTypeFullName"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -6799,39 +6336,35 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("EntityChangeId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("NewValue") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("NewValue") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)") + .HasColumnName("NewValue"); b.Property("OriginalValue") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("OriginalValue") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)") + .HasColumnName("OriginalValue"); b.Property("PropertyName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("PropertyName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)") + .HasColumnName("PropertyName"); b.Property("PropertyTypeFullName") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("PropertyTypeFullName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("PropertyTypeFullName"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -6845,56 +6378,52 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ApplicationName") .HasMaxLength(96) - .HasColumnType("character varying(96)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(96)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsAbandoned") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.Property("JobArgs") .IsRequired() .HasMaxLength(1048576) - .HasColumnType("character varying(1048576)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("JobName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("LastTryTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("NextTryTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("Priority") .ValueGeneratedOnAdd() - .HasColumnType("smallint") + .HasColumnType("tinyint") .HasDefaultValue((byte)15); b.Property("TryCount") @@ -6913,60 +6442,52 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AllowedProviders") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("DefaultValue") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Description") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("DisplayName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("GroupName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsAvailableToHost") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsVisibleToClients") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ParentName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ValueType") .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.HasKey("Id"); @@ -6982,23 +6503,21 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("DisplayName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -7012,34 +6531,31 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ProviderKey") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ProviderName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Value") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("Name", "ProviderName", "ProviderKey") - .IsUnique(); + .IsUnique() + .HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); b.ToTable("AbpFeatureValues", (string)null); }); @@ -7047,54 +6563,49 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("Description") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsStatic") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Regex") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("RegexDescription") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Required") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("ValueType") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); @@ -7104,24 +6615,25 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("SourceTenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("SourceUserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TargetTenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TargetUserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique(); + .IsUnique() + .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); b.ToTable("AbpLinkUsers", (string)null); }); @@ -7129,54 +6641,51 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("EntityVersion") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDefault") - .HasColumnType("boolean") + .HasColumnType("bit") .HasColumnName("IsDefault"); b.Property("IsPublic") - .HasColumnType("boolean") + .HasColumnType("bit") .HasColumnName("IsPublic"); b.Property("IsStatic") - .HasColumnType("boolean") + .HasColumnType("bit") .HasColumnName("IsStatic"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("NormalizedName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -7189,24 +6698,22 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ClaimType") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ClaimValue") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("RoleId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -7219,75 +6726,65 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Action") .HasMaxLength(96) - .HasColumnType("character varying(96)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(96)"); b.Property("ApplicationName") .HasMaxLength(96) - .HasColumnType("character varying(96)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(96)"); b.Property("BrowserInfo") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("ClientId") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ClientIpAddress") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CorrelationId") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Identity") .HasMaxLength(96) - .HasColumnType("character varying(96)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(96)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("TenantName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("UserName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -7305,51 +6802,46 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentitySession", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ClientId") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Device") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("DeviceInfo") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IpAddresses") .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("LastAccessed") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("SessionId") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("SignedIn") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -7365,297 +6857,266 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AccessFailedCount") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0) .HasColumnName("AccessFailedCount"); b.Property("BirthDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("BirthPlace") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("BloodType") .HasMaxLength(16) - .HasColumnType("character varying(16)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(16)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DepartmentId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("District") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("EducationLevel") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Email") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("Email") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("Email"); b.Property("EmailConfirmed") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("EmailConfirmed"); b.Property("EntityVersion") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("FamilySequenceNo") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("FatherName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("GraduationSchool") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("HireDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("HomeAddress") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("IdentityNumber") .HasMaxLength(15) - .HasColumnType("character varying(15)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(15)"); b.Property("IsActive") - .HasColumnType("boolean") + .HasColumnType("bit") .HasColumnName("IsActive"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsExternal") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsExternal"); b.Property("IsVerified") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.Property("IssuedDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("IssuedPlace") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("JobPositionId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LastPasswordChangeTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetimeoffset"); b.Property("LockoutEnabled") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("LockoutEnabled"); b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetimeoffset"); b.Property("LoginEndDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("MaritalStatus") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("MarriageDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("MotherName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Name") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("Name") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("Name"); b.Property("Nationality") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("NormalizedEmail") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("NormalizedEmail") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("NormalizedEmail"); b.Property("NormalizedUserName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("NormalizedUserName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("NormalizedUserName"); b.Property("PasswordHash") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("PasswordHash") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("PasswordHash"); b.Property("PhoneNumber") .HasMaxLength(16) - .HasColumnType("character varying(16)") - .HasColumnName("PhoneNumber") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(16)") + .HasColumnName("PhoneNumber"); b.Property("PhoneNumberConfirmed") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("PhoneNumberConfirmed"); b.Property("Province") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("RocketUsername") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("SecurityStamp") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("SecurityStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("SecurityStamp"); b.Property("SequenceNo") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("SerialNo") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("ShouldChangePasswordOnNextLogin") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("SskNo") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("Surname") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("Surname") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("Surname"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("TerminationDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("TwoFactorEnabled") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("TwoFactorEnabled"); b.Property("UserName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("UserName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("UserName"); b.Property("Village") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("VolumeNo") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("WorkHour") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.HasKey("Id"); @@ -7673,25 +7134,23 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ClaimType") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ClaimValue") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -7703,22 +7162,22 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityUserDelegation", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("EndTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("SourceUserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("StartTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("TargetUserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -7729,26 +7188,23 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => { b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("LoginProvider") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ProviderDisplayName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ProviderKey") .IsRequired() .HasMaxLength(196) - .HasColumnType("character varying(196)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(196)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("UserId", "LoginProvider"); @@ -7761,21 +7217,21 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => { b.Property("OrganizationUnitId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("OrganizationUnitId", "UserId"); @@ -7788,13 +7244,13 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => { b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("RoleId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("UserId", "RoleId"); @@ -7807,25 +7263,22 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => { b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("LoginProvider") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Name") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Value") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.HasKey("UserId", "LoginProvider", "Name"); @@ -7835,73 +7288,70 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(95) - .HasColumnType("character varying(95)") - .HasColumnName("Code") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(95)") + .HasColumnName("Code"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DisplayName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("DisplayName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)") + .HasColumnName("DisplayName"); b.Property("EntityVersion") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("ParentId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -7916,21 +7366,21 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => { b.Property("OrganizationUnitId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("RoleId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("OrganizationUnitId", "RoleId"); @@ -7944,122 +7394,104 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ApplicationType") .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("ClientId") .HasMaxLength(100) - .HasColumnType("character varying(100)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(100)"); b.Property("ClientSecret") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("ClientType") .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("ClientUri") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("ConsentType") .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DisplayName") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("DisplayNames") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("FrontChannelLogoutUri") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("JsonWebKeySet") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LogoUri") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Permissions") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("PostLogoutRedirectUris") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Properties") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("RedirectUris") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Requirements") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Settings") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.HasKey("Id"); @@ -8072,49 +7504,43 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ApplicationId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Properties") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Scopes") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Status") .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("Subject") .HasMaxLength(400) - .HasColumnType("character varying(400)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(400)"); b.Property("Type") .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.HasKey("Id"); @@ -8127,79 +7553,71 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Descriptions") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("DisplayName") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("DisplayNames") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .HasMaxLength(200) - .HasColumnType("character varying(200)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(200)"); b.Property("Properties") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Resources") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.HasKey("Id"); @@ -8212,63 +7630,56 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ApplicationId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AuthorizationId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ExpirationDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Payload") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Properties") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("RedemptionDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ReferenceId") .HasMaxLength(100) - .HasColumnType("character varying(100)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(100)"); b.Property("Status") .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("Subject") .HasMaxLength(400) - .HasColumnType("character varying(400)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(400)"); b.Property("Type") .HasMaxLength(150) - .HasColumnType("character varying(150)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(150)"); b.HasKey("Id"); @@ -8285,55 +7696,48 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("DisplayName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("GroupName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsEnabled") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("MenuGroup") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("MultiTenancySide") - .HasColumnType("smallint"); + .HasColumnType("tinyint"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ParentName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Providers") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("StateCheckers") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -8349,34 +7753,32 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ProviderKey") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ProviderName") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey") - .IsUnique(); + .IsUnique() + .HasFilter("[TenantId] IS NOT NULL"); b.ToTable("AbpPermissionGrants", (string)null); }); @@ -8385,23 +7787,21 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("DisplayName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -8415,34 +7815,31 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ProviderKey") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ProviderName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Value") .IsRequired() .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.HasKey("Id"); b.HasIndex("Name", "ProviderName", "ProviderKey") - .IsUnique(); + .IsUnique() + .HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); b.ToTable("AbpSettings", (string)null); }); @@ -8451,47 +7848,42 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("DefaultValue") .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("Description") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("DisplayName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsEncrypted") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsInherited") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsVisibleToClients") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Providers") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.HasKey("Id"); @@ -8504,157 +7896,138 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Address1") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Address2") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("City") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("Country") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("District") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Email") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("EntityVersion") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("FaxNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("Founder") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaxConcurrentUsers") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0); b.Property("MenuGroup") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("MobileNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("Name") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("NormalizedName") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("OrganizationName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("PhoneNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("PostalCode") .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("TaxOffice") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Township") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("VknTckn") .HasColumnType("bigint"); b.Property("Website") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -8668,18 +8041,16 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => { b.Property("TenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Name") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Value") .IsRequired() .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.HasKey("TenantId", "Name"); diff --git a/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260525143351_Initial.cs b/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260525143351_Initial.cs new file mode 100644 index 0000000..05349ad --- /dev/null +++ b/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/20260525143351_Initial.cs @@ -0,0 +1,4428 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace Sozsoft.Platform.Migrations +{ + /// + public partial class Initial : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "AbpAuditLogExcelFiles", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + FileName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpAuditLogExcelFiles", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpAuditLogs", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ApplicationName = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + TenantName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ImpersonatorUserId = table.Column(type: "uniqueidentifier", nullable: true), + ImpersonatorUserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ImpersonatorTenantId = table.Column(type: "uniqueidentifier", nullable: true), + ImpersonatorTenantName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExecutionTime = table.Column(type: "datetime2", nullable: false), + ExecutionDuration = table.Column(type: "int", nullable: false), + ClientIpAddress = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ClientName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + ClientId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CorrelationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BrowserInfo = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + HttpMethod = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + Url = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Exceptions = table.Column(type: "nvarchar(max)", nullable: true), + Comments = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + HttpStatusCode = table.Column(type: "int", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: false), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpAuditLogs", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpBackgroundJobs", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ApplicationName = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + JobName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + JobArgs = table.Column(type: "nvarchar(max)", maxLength: 1048576, nullable: false), + TryCount = table.Column(type: "smallint", nullable: false, defaultValue: (short)0), + CreationTime = table.Column(type: "datetime2", nullable: false), + NextTryTime = table.Column(type: "datetime2", nullable: false), + LastTryTime = table.Column(type: "datetime2", nullable: true), + IsAbandoned = table.Column(type: "bit", nullable: false, defaultValue: false), + Priority = table.Column(type: "tinyint", nullable: false, defaultValue: (byte)15), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: false), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpBackgroundJobs", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpClaimTypes", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Required = table.Column(type: "bit", nullable: false), + IsStatic = table.Column(type: "bit", nullable: false), + Regex = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + RegexDescription = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Description = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ValueType = table.Column(type: "int", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: false), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpClaimTypes", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpFeatureGroups", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + DisplayName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpFeatureGroups", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpFeatures", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + GroupName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ParentName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + DisplayName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + DefaultValue = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + IsVisibleToClients = table.Column(type: "bit", nullable: false), + IsAvailableToHost = table.Column(type: "bit", nullable: false), + AllowedProviders = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ValueType = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpFeatures", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpFeatureValues", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Value = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpFeatureValues", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpLinkUsers", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SourceUserId = table.Column(type: "uniqueidentifier", nullable: false), + SourceTenantId = table.Column(type: "uniqueidentifier", nullable: true), + TargetUserId = table.Column(type: "uniqueidentifier", nullable: false), + TargetTenantId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpLinkUsers", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpOrganizationUnits", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ParentId = table.Column(type: "uniqueidentifier", nullable: true), + Code = table.Column(type: "nvarchar(95)", maxLength: 95, nullable: false), + DisplayName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + EntityVersion = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: false), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id); + table.ForeignKey( + name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId", + column: x => x.ParentId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "AbpPermissionGrants", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpPermissionGrants", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpPermissionGroups", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + DisplayName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpPermissionGroups", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpPermissions", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + GroupName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ParentName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + DisplayName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + IsEnabled = table.Column(type: "bit", nullable: false), + MultiTenancySide = table.Column(type: "tinyint", nullable: false), + Providers = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + StateCheckers = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + MenuGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpPermissions", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpRoles", + 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), + NormalizedName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + IsDefault = table.Column(type: "bit", nullable: false), + IsStatic = table.Column(type: "bit", nullable: false), + IsPublic = table.Column(type: "bit", nullable: false), + EntityVersion = table.Column(type: "int", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: false), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpRoles", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpSecurityLogs", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ApplicationName = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + Identity = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + Action = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + TenantName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ClientId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CorrelationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ClientIpAddress = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BrowserInfo = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: false), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpSecurityLogs", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpSessions", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SessionId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Device = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + DeviceInfo = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: false), + ClientId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IpAddresses = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), + SignedIn = table.Column(type: "datetime2", nullable: false), + LastAccessed = table.Column(type: "datetime2", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpSessions", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpSettingDefinitions", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + DisplayName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + DefaultValue = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), + IsVisibleToClients = table.Column(type: "bit", nullable: false), + Providers = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + IsInherited = table.Column(type: "bit", nullable: false), + IsEncrypted = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpSettingDefinitions", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpSettings", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Value = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: false), + ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpSettings", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpTenants", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + NormalizedName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + EntityVersion = table.Column(type: "int", nullable: false), + Address1 = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Address2 = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + City = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Country = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + District = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Email = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + FaxNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + Founder = table.Column(type: "nvarchar(max)", nullable: true), + IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), + MaxConcurrentUsers = table.Column(type: "int", nullable: true, defaultValue: 0), + MenuGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + MobileNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + OrganizationName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + PostalCode = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + TaxOffice = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Township = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + VknTckn = table.Column(type: "bigint", nullable: true), + Website = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: false), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpTenants", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpUserDelegations", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + SourceUserId = table.Column(type: "uniqueidentifier", nullable: false), + TargetUserId = table.Column(type: "uniqueidentifier", nullable: false), + StartTime = table.Column(type: "datetime2", nullable: false), + EndTime = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserDelegations", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpUsers", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + NormalizedUserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Surname = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Email = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + NormalizedEmail = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + EmailConfirmed = table.Column(type: "bit", nullable: false, defaultValue: false), + PasswordHash = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + SecurityStamp = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + IsExternal = table.Column(type: "bit", nullable: false, defaultValue: false), + PhoneNumber = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + PhoneNumberConfirmed = table.Column(type: "bit", nullable: false, defaultValue: false), + IsActive = table.Column(type: "bit", nullable: false), + TwoFactorEnabled = table.Column(type: "bit", nullable: false, defaultValue: false), + LockoutEnd = table.Column(type: "datetimeoffset", nullable: true), + LockoutEnabled = table.Column(type: "bit", nullable: false, defaultValue: false), + AccessFailedCount = table.Column(type: "int", nullable: false, defaultValue: 0), + ShouldChangePasswordOnNextLogin = table.Column(type: "bit", nullable: false), + EntityVersion = table.Column(type: "int", nullable: false), + LastPasswordChangeTime = table.Column(type: "datetimeoffset", nullable: true), + BirthDate = table.Column(type: "datetime2", nullable: true), + BirthPlace = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + BloodType = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + DepartmentId = table.Column(type: "uniqueidentifier", nullable: false), + District = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + EducationLevel = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + FamilySequenceNo = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), + FatherName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + GraduationSchool = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + HireDate = table.Column(type: "datetime2", nullable: true), + HomeAddress = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + IdentityNumber = table.Column(type: "nvarchar(15)", maxLength: 15, nullable: true), + IsVerified = table.Column(type: "bit", nullable: false, defaultValue: false), + IssuedDate = table.Column(type: "datetime2", nullable: true), + IssuedPlace = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + JobPositionId = table.Column(type: "uniqueidentifier", nullable: false), + LoginEndDate = table.Column(type: "datetime2", nullable: true), + MaritalStatus = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), + MarriageDate = table.Column(type: "datetime2", nullable: true), + MotherName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Nationality = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Province = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + RocketUsername = table.Column(type: "nvarchar(max)", nullable: true), + SequenceNo = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), + SerialNo = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), + SskNo = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), + TerminationDate = table.Column(type: "datetime2", nullable: true), + Village = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + VolumeNo = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), + WorkHour = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: false), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUsers", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_Announcement", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Excerpt = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false), + Content = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: false), + ImageUrl = table.Column(type: "text", nullable: true), + Category = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + PublishDate = table.Column(type: "datetime2", nullable: false), + ExpiryDate = table.Column(type: "datetime2", nullable: true), + IsPinned = table.Column(type: "bit", nullable: false), + ViewCount = table.Column(type: "int", nullable: false, defaultValue: 0), + Attachments = table.Column(type: "nvarchar(2048)", maxLength: 2048, 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_Adm_T_Announcement", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_Department", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ParentId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Adm_T_Department", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_EventCategory", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + 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_Adm_T_EventCategory", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_EventType", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + 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_Adm_T_EventType", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_IpRestriction", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ResourceType = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + ResourceId = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), + IP = table.Column(type: "nvarchar(32)", maxLength: 32, 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_Adm_T_IpRestriction", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_Note", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + EntityName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + EntityId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Subject = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Content = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: false), + FilesJson = table.Column(type: "nvarchar(max)", 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_Adm_T_Note", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_ReportCategory", + 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), + Description = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), + Icon = table.Column(type: "nvarchar(64)", maxLength: 64, 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_Adm_T_ReportCategory", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_Sector", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + 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_Adm_T_Sector", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_Sequence", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), + Prefix = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), + Suffix = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: true), + PaddingSize = table.Column(type: "int", nullable: false, defaultValue: 6), + IncrementStep = table.Column(type: "int", nullable: false, defaultValue: 1), + StartNumber = table.Column(type: "bigint", nullable: false), + NextNumber = table.Column(type: "bigint", nullable: false, defaultValue: 1L), + ResetPeriod = table.Column(type: "int", nullable: false, defaultValue: 0), + LastPeriodKey = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + FormatTemplate = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false, defaultValue: "{Prefix}{Number}{Suffix}"), + 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_Adm_T_Sequence", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_SocialPost", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + Content = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: false), + LikeCount = table.Column(type: "int", nullable: false, defaultValue: 0), + IsLiked = table.Column(type: "bit", nullable: false, defaultValue: false), + IsOwnPost = table.Column(type: "bit", nullable: false, defaultValue: 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_Adm_T_SocialPost", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_Survey", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), + Deadline = table.Column(type: "datetime2", nullable: false), + Responses = table.Column(type: "int", nullable: false, defaultValue: 0), + Status = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + IsAnonymous = table.Column(type: "bit", 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_Adm_T_Survey", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_Videoroom", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + BranchId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Subject = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + TeacherId = table.Column(type: "uniqueidentifier", nullable: true), + TeacherName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ScheduledStartTime = table.Column(type: "datetime2", nullable: false), + ScheduledEndTime = table.Column(type: "datetime2", nullable: true), + Duration = table.Column(type: "int", nullable: false), + ActualStartTime = table.Column(type: "datetime2", nullable: true), + ActualEndTime = table.Column(type: "datetime2", nullable: true), + MaxParticipants = table.Column(type: "int", nullable: false), + ParticipantCount = table.Column(type: "int", nullable: false), + SettingsJson = table.Column(type: "nvarchar(max)", 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_Adm_T_Videoroom", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_WorkHour", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StartTime = table.Column(type: "datetime2", maxLength: 8, nullable: false), + EndTime = table.Column(type: "datetime2", maxLength: 8, nullable: false), + Monday = table.Column(type: "bit", nullable: true), + Tuesday = table.Column(type: "bit", nullable: true), + Wednesday = table.Column(type: "bit", nullable: true), + Thursday = table.Column(type: "bit", nullable: true), + Friday = table.Column(type: "bit", nullable: true), + Saturday = table.Column(type: "bit", nullable: true), + Sunday = table.Column(type: "bit", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Adm_T_WorkHour", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "OpenIddictApplications", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ApplicationType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ClientId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ClientSecret = table.Column(type: "nvarchar(max)", nullable: true), + ClientType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ConsentType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DisplayName = table.Column(type: "nvarchar(max)", nullable: true), + DisplayNames = table.Column(type: "nvarchar(max)", nullable: true), + JsonWebKeySet = table.Column(type: "nvarchar(max)", nullable: true), + Permissions = table.Column(type: "nvarchar(max)", nullable: true), + PostLogoutRedirectUris = table.Column(type: "nvarchar(max)", nullable: true), + Properties = table.Column(type: "nvarchar(max)", nullable: true), + RedirectUris = table.Column(type: "nvarchar(max)", nullable: true), + Requirements = table.Column(type: "nvarchar(max)", nullable: true), + Settings = table.Column(type: "nvarchar(max)", nullable: true), + FrontChannelLogoutUri = table.Column(type: "nvarchar(max)", nullable: true), + ClientUri = table.Column(type: "nvarchar(max)", nullable: true), + LogoUri = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: false), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_OpenIddictApplications", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "OpenIddictScopes", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + Descriptions = table.Column(type: "nvarchar(max)", nullable: true), + DisplayName = table.Column(type: "nvarchar(max)", nullable: true), + DisplayNames = table.Column(type: "nvarchar(max)", nullable: true), + Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Properties = table.Column(type: "nvarchar(max)", nullable: true), + Resources = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: false), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_OpenIddictScopes", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_About", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + StatsJson = table.Column(type: "text", nullable: true), + DescriptionsJson = table.Column(type: "text", nullable: true), + SectionsJson = table.Column(type: "text", 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_Sas_H_About", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_AiBot", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ApiUrl = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + IsActive = table.Column(type: "bit", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_AiBot", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_BackgroundWorker", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Cron = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WorkerType = table.Column(type: "int", nullable: false), + IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), + DataSourceCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BeforeSp = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + AfterSp = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Options = table.Column(type: "text", 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_Sas_H_BackgroundWorker", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_BackgroundWorker_MailQueueTableFormat", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + TableName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Order = table.Column(type: "smallint", nullable: false), + ColumnName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Caption = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HeaderCss = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Css = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + FooterCss = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + DataType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DataFormat = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsHidden = table.Column(type: "bit", nullable: false), + IsProtected = table.Column(type: "bit", nullable: false), + SubTotal = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Width = table.Column(type: "int", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_BackgroundWorker_MailQueueTableFormat", x => x.Id); + table.UniqueConstraint("AK_Sas_H_BackgroundWorker_MailQueueTableFormat_TableName", x => x.TableName); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_BlogCategory", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Slug = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Icon = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + DisplayOrder = table.Column(type: "int", nullable: false), + IsActive = table.Column(type: "bit", nullable: false), + PostCount = table.Column(type: "int", 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_Sas_H_BlogCategory", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_Contact", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Address = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + PhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + Email = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Location = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + TaxNumber = table.Column(type: "bigint", nullable: true), + BankJson = table.Column(type: "text", nullable: true), + WorkHoursJson = table.Column(type: "text", nullable: true), + MapJson = table.Column(type: "text", 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_Sas_H_Contact", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_ContactTitle", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Title = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Abbreviation = table.Column(type: "nvarchar(64)", maxLength: 64, 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_Sas_H_ContactTitle", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_CountryGroup", + columns: table => new + { + Id = table.Column(type: "nvarchar(450)", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, 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_H_CountryGroup", x => x.Id); + table.UniqueConstraint("AK_Sas_H_CountryGroup_Name", x => x.Name); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_CrudEndpoint", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + EntityName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Method = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + Path = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + OperationType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CsharpCode = table.Column(type: "nvarchar(max)", nullable: false), + IsActive = table.Column(type: "bit", 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_H_CrudEndpoint", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_Currency", + columns: table => new + { + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Symbol = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Rate = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), + LastUpdated = table.Column(type: "datetime2", 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_Sas_H_Currency", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_CustomComponent", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Code = table.Column(type: "nvarchar(max)", nullable: false), + Props = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + IsActive = table.Column(type: "bit", nullable: false), + Dependencies = table.Column(type: "nvarchar(2048)", maxLength: 2048, 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_Sas_H_CustomComponent", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_CustomEndpoint", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Url = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Method = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + DataSourceCode = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Sql = table.Column(type: "nvarchar(max)", nullable: false), + ParametersJson = table.Column(type: "text", nullable: true), + PermissionsJson = table.Column(type: "text", 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_Sas_H_CustomEndpoint", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_DataSource", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + DataSourceType = table.Column(type: "int", nullable: false), + ConnectionString = 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_Sas_H_DataSource", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_Demo", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + OrganizationName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Email = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + PhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + Address = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false), + NumberOfBranches = table.Column(type: "int", nullable: false), + NumberOfUsers = table.Column(type: "int", nullable: false), + Message = table.Column(type: "nvarchar(2048)", maxLength: 2048, 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_H_Demo", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_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(2048)", maxLength: 2048, 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_Sas_H_DynamicService", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_Home", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + HeroBackgroundImageKey = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + HeroPrimaryCtaKey = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + HeroSecondaryCtaKey = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + FeaturesTitleKey = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + FeaturesSubtitleKey = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + SolutionsTitleKey = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + SolutionsSubtitleKey = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + CtaTitleKey = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + CtaSubtitleKey = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + CtaButtonLabelKey = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + SlidesJson = table.Column(type: "text", nullable: true), + FeaturesJson = table.Column(type: "text", nullable: true), + SolutionsJson = table.Column(type: "text", 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_Sas_H_Home", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_InstallmentOption", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Installment = table.Column(type: "int", nullable: false), + Name = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: false), + Commission = table.Column(type: "decimal(5,3)", precision: 5, scale: 3, 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_H_InstallmentOption", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_Language", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + UiCultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + DisplayName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + IsEnabled = table.Column(type: "bit", nullable: false), + TwoLetterISOLanguageName = table.Column(type: "nvarchar(2)", maxLength: 2, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_Language", x => x.Id); + table.UniqueConstraint("AK_Sas_H_Language_CultureName", x => x.CultureName); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_LanguageKey", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Key = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ResourceName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_LanguageKey", x => x.Id); + table.UniqueConstraint("AK_Sas_H_LanguageKey_ResourceName_Key", x => new { x.ResourceName, x.Key }); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_ListForm", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ListFormCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + DataSourceCode = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + SelectCommandType = table.Column(type: "int", nullable: false), + TableName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + SelectCommand = table.Column(type: "text", nullable: true), + KeyFieldName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + KeyFieldDbSourceType = table.Column(type: "int", nullable: false), + SelectFieldsDefaultValueJson = table.Column(type: "text", nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + SortMode = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + PageSize = table.Column(type: "int", nullable: false, defaultValue: 50), + Width = table.Column(type: "int", nullable: true), + Height = table.Column(type: "int", nullable: true), + FullHeight = table.Column(type: "bit", nullable: false), + DefaultFilter = table.Column(type: "nvarchar(max)", nullable: true), + ColumnOptionJson = table.Column(type: "text", nullable: true), + PivotOptionJson = table.Column(type: "text", nullable: true), + TreeOptionJson = table.Column(type: "nvarchar(max)", nullable: true), + GanttOptionJson = table.Column(type: "nvarchar(max)", nullable: true), + SchedulerOptionJson = table.Column(type: "nvarchar(max)", nullable: true), + FilterRowJson = table.Column(type: "text", nullable: true), + RowJson = table.Column(type: "nvarchar(max)", nullable: true), + HeaderFilterJson = table.Column(type: "text", nullable: true), + FilterPanelJson = table.Column(type: "text", nullable: true), + SearchPanelJson = table.Column(type: "text", nullable: true), + GroupPanelJson = table.Column(type: "text", nullable: true), + SelectionJson = table.Column(type: "text", nullable: true), + PagerOptionJson = table.Column(type: "text", nullable: true), + EditingOptionJson = table.Column(type: "text", nullable: true), + EditingFormJson = table.Column(type: "text", nullable: true), + PermissionJson = table.Column(type: "text", nullable: true), + InsertFieldsDefaultValueJson = table.Column(type: "text", nullable: true), + UpdateFieldsDefaultValueJson = table.Column(type: "text", nullable: true), + DeleteFieldsDefaultValueJson = table.Column(type: "text", nullable: true), + CommandColumnJson = table.Column(type: "text", nullable: true), + StateStoringJson = table.Column(type: "text", nullable: true), + DeleteCommand = table.Column(type: "text", nullable: true), + DeleteBeforeCommand = table.Column(type: "nvarchar(max)", nullable: true), + DeleteAfterCommand = table.Column(type: "nvarchar(max)", nullable: true), + UpdateCommand = table.Column(type: "text", nullable: true), + UpdateBeforeCommand = table.Column(type: "nvarchar(max)", nullable: true), + UpdateAfterCommand = table.Column(type: "nvarchar(max)", nullable: true), + InsertCommand = table.Column(type: "text", nullable: true), + InsertBeforeCommand = table.Column(type: "nvarchar(max)", nullable: true), + InsertAfterCommand = table.Column(type: "nvarchar(max)", nullable: true), + UpdateServiceAddress = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + InsertServiceAddress = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + DeleteServiceAddress = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + CustomJsSourcesJson = table.Column(type: "text", nullable: true), + CustomStyleSourcesJson = table.Column(type: "text", nullable: true), + FormFieldsDefaultValueJson = table.Column(type: "text", nullable: true), + IsTenant = table.Column(type: "bit", nullable: false), + IsBranch = table.Column(type: "bit", nullable: false), + IsOrganizationUnit = table.Column(type: "bit", nullable: false), + ListFormType = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + IsSubForm = table.Column(type: "bit", nullable: false), + SubFormsListFormType = table.Column(type: "nvarchar(max)", nullable: true), + ShowNote = table.Column(type: "bit", nullable: false), + SubFormsJson = table.Column(type: "text", nullable: true), + WidgetsJson = table.Column(type: "text", nullable: true), + WorkflowJson = table.Column(type: "text", nullable: true), + ExtraFilterJson = table.Column(type: "text", nullable: true), + LayoutJson = table.Column(type: "text", nullable: true), + UserId = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + RoleId = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + CommonJson = table.Column(type: "text", nullable: true), + DataSourceJson = table.Column(type: "text", nullable: true), + AdaptiveLayoutJson = table.Column(type: "text", nullable: true), + AnimationJson = table.Column(type: "text", nullable: true), + AnnotationsJson = table.Column(type: "text", nullable: true), + ArgumentAxisJson = table.Column(type: "text", nullable: true), + CommonAnnotationsSettingsJson = table.Column(type: "text", nullable: true), + CommonAxisSettingsJson = table.Column(type: "text", nullable: true), + CommonPaneSettingsJson = table.Column(type: "text", nullable: true), + CommonSeriesSettingsJson = table.Column(type: "text", nullable: true), + CrosshairJson = table.Column(type: "text", nullable: true), + ExportJson = table.Column(type: "text", nullable: true), + LegendJson = table.Column(type: "text", nullable: true), + MarginJson = table.Column(type: "text", nullable: true), + PanesJson = table.Column(type: "text", nullable: true), + ScrollBarJson = table.Column(type: "text", nullable: true), + SeriesJson = table.Column(type: "text", nullable: true), + SizeJson = table.Column(type: "text", nullable: true), + TitleJson = table.Column(type: "text", nullable: true), + TooltipJson = table.Column(type: "text", nullable: true), + ValueAxisJson = table.Column(type: "text", nullable: true), + ZoomAndPanJson = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_ListForm", x => x.Id); + table.UniqueConstraint("AK_Sas_H_ListForm_ListFormCode", x => x.ListFormCode); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_ListFormWorkflow", + columns: table => new + { + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + ListFormCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Kind = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Title = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + CompareColumn = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + CompareOperator = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + CompareValue = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), + Approver = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + NextOnStart = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + NextOnTrue = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + NextOnFalse = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + NextOnApprove = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + NextOnReject = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + PositionX = table.Column(type: "int", nullable: false), + PositionY = table.Column(type: "int", nullable: false), + CompareOutcomesJson = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_ListFormWorkflow", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_LogEntry", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Message = table.Column(type: "nvarchar(max)", nullable: true), + MessageTemplate = table.Column(type: "nvarchar(max)", nullable: true), + Level = table.Column(type: "nvarchar(max)", nullable: true), + TimeStamp = table.Column(type: "datetime2", nullable: true), + Exception = table.Column(type: "nvarchar(max)", nullable: true), + Properties = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_LogEntry", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_Menu", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + DisplayName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Order = table.Column(type: "int", nullable: false), + Url = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Icon = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ParentCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CssClass = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + RequiredPermissionName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + ShortName = table.Column(type: "nvarchar(max)", nullable: true), + Target = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsDisabled = table.Column(type: "bit", nullable: false), + ElementId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + UserId = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + RoleId = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + CultureName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_Menu", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_MenuGroup", + columns: table => new + { + Id = table.Column(type: "nvarchar(450)", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_MenuGroup", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_NotificationType", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, 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_H_NotificationType", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_Order", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsActive = table.Column(type: "bit", nullable: false), + OrganizationName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Founder = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + VknTckn = table.Column(type: "bigint", nullable: true), + TaxOffice = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Address1 = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Address2 = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + District = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Country = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + City = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + PostalCode = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + MobileNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + PhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + FaxNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + Email = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Website = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + MenuGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Subtotal = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), + Commission = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), + Total = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), + PaymentMethodId = table.Column(type: "uniqueidentifier", nullable: false), + Installment = table.Column(type: "int", nullable: true), + PaymentDataJson = table.Column(type: "nvarchar(max)", maxLength: 4096, 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_Sas_H_Order", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_PaymentMethod", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Commission = table.Column(type: "decimal(5,3)", precision: 5, scale: 3, nullable: false), + Logo = table.Column(type: "nvarchar(32)", maxLength: 32, 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_Sas_H_PaymentMethod", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_Product", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Category = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Order = table.Column(type: "int", nullable: false), + MonthlyPrice = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true), + YearlyPrice = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true), + IsQuantityBased = table.Column(type: "bit", nullable: false), + ImageUrl = table.Column(type: "nvarchar(512)", maxLength: 512, 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_Sas_H_Product", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_Route", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Key = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Path = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + ComponentPath = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + RouteType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Authority = table.Column(type: "nvarchar(max)", 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_Sas_H_Route", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_Service", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Icon = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Title = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Features = table.Column(type: "nvarchar(max)", 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_Sas_H_Service", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_SettingDefinition", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + NameKey = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + DescriptionKey = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + DefaultValue = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + IsVisibleToClients = table.Column(type: "bit", nullable: false), + Providers = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsInherited = table.Column(type: "bit", nullable: false), + IsEncrypted = table.Column(type: "bit", nullable: false), + MainGroupKey = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + SubGroupKey = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + RequiredPermissionName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + DataType = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: false), + SelectOptions = table.Column(type: "nvarchar(max)", nullable: true), + Order = table.Column(type: "int", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_SettingDefinition", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_SkillType", + columns: table => new + { + Id = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, 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_H_SkillType", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_UomCategory", + columns: table => new + { + Id = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, 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_H_UomCategory", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_T_Branch", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + VknTckn = table.Column(type: "bigint", nullable: false), + TaxOffice = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Country = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + City = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + District = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Township = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Address1 = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Address2 = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + PostalCode = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + MobileNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), + PhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + FaxNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + Email = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Website = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + IsActive = table.Column(type: "bit", nullable: true, defaultValue: 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_Sas_T_Branch", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_T_ForumCategory", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Slug = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Description = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Icon = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DisplayOrder = table.Column(type: "int", nullable: false), + IsActive = table.Column(type: "bit", nullable: false), + IsLocked = table.Column(type: "bit", nullable: false), + TopicCount = table.Column(type: "int", nullable: true), + PostCount = table.Column(type: "int", nullable: true), + LastPostId = table.Column(type: "uniqueidentifier", nullable: true), + LastPostDate = table.Column(type: "datetime2", nullable: true), + LastPostUserId = table.Column(type: "uniqueidentifier", nullable: true), + LastPostUserName = table.Column(type: "nvarchar(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_Sas_T_ForumCategory", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Sas_T_GlobalSearch", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + System = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Group = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Term = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Weight = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Url = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_T_GlobalSearch", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpAuditLogActions", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + AuditLogId = table.Column(type: "uniqueidentifier", nullable: false), + ServiceName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + MethodName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Parameters = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + ExecutionTime = table.Column(type: "datetime2", nullable: false), + ExecutionDuration = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpAuditLogActions", x => x.Id); + table.ForeignKey( + name: "FK_AbpAuditLogActions_AbpAuditLogs_AuditLogId", + column: x => x.AuditLogId, + principalTable: "AbpAuditLogs", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpEntityChanges", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + AuditLogId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ChangeTime = table.Column(type: "datetime2", nullable: false), + ChangeType = table.Column(type: "tinyint", nullable: false), + EntityTenantId = table.Column(type: "uniqueidentifier", nullable: true), + EntityId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + EntityTypeFullName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpEntityChanges", x => x.Id); + table.ForeignKey( + name: "FK_AbpEntityChanges_AbpAuditLogs_AuditLogId", + column: x => x.AuditLogId, + principalTable: "AbpAuditLogs", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpOrganizationUnitRoles", + columns: table => new + { + RoleId = table.Column(type: "uniqueidentifier", nullable: false), + OrganizationUnitId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => new { x.OrganizationUnitId, x.RoleId }); + table.ForeignKey( + name: "FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationUnitId", + column: x => x.OrganizationUnitId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpOrganizationUnitRoles_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpRoleClaims", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RoleId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ClaimType = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + ClaimValue = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpRoleClaims", x => x.Id); + table.ForeignKey( + name: "FK_AbpRoleClaims_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpTenantConnectionStrings", + columns: table => new + { + TenantId = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Value = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpTenantConnectionStrings", x => new { x.TenantId, x.Name }); + table.ForeignKey( + name: "FK_AbpTenantConnectionStrings_AbpTenants_TenantId", + column: x => x.TenantId, + principalTable: "AbpTenants", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserClaims", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ClaimType = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + ClaimValue = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserClaims", x => x.Id); + table.ForeignKey( + name: "FK_AbpUserClaims_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserLogins", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + LoginProvider = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ProviderKey = table.Column(type: "nvarchar(196)", maxLength: 196, nullable: false), + ProviderDisplayName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserLogins", x => new { x.UserId, x.LoginProvider }); + table.ForeignKey( + name: "FK_AbpUserLogins_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserOrganizationUnits", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + OrganizationUnitId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserOrganizationUnits", x => new { x.OrganizationUnitId, x.UserId }); + table.ForeignKey( + name: "FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationUnitId", + column: x => x.OrganizationUnitId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpUserOrganizationUnits_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserRoles", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + RoleId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserRoles", x => new { x.UserId, x.RoleId }); + table.ForeignKey( + name: "FK_AbpUserRoles_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpUserRoles_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserTokens", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + LoginProvider = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Value = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserTokens", x => new { x.UserId, x.LoginProvider, x.Name }); + table.ForeignKey( + name: "FK_AbpUserTokens_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_JobPosition", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + DepartmentId = table.Column(type: "uniqueidentifier", nullable: false), + ParentId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Adm_T_JobPosition", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_JobPosition_Adm_T_Department_DepartmentId", + column: x => x.DepartmentId, + principalTable: "Adm_T_Department", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_Event", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CategoryId = table.Column(type: "uniqueidentifier", nullable: false), + TypeId = table.Column(type: "uniqueidentifier", nullable: false), + Date = table.Column(type: "datetime2", nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Place = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + ParticipantsCount = table.Column(type: "int", nullable: false), + Likes = table.Column(type: "int", nullable: false), + isPublished = table.Column(type: "bit", nullable: false, defaultValue: false), + Photos = table.Column(type: "text", 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_Adm_T_Event", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_Event_Adm_T_EventCategory_CategoryId", + column: x => x.CategoryId, + principalTable: "Adm_T_EventCategory", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Adm_T_Event_Adm_T_EventType_TypeId", + column: x => x.TypeId, + principalTable: "Adm_T_EventType", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_ReportTemplate", + 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), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + HtmlContent = table.Column(type: "nvarchar(max)", nullable: false), + CategoryId = table.Column(type: "uniqueidentifier", nullable: false), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, 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_Adm_T_ReportTemplate", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_ReportTemplate_Adm_T_ReportCategory_CategoryId", + column: x => x.CategoryId, + principalTable: "Adm_T_ReportCategory", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_SocialComment", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + SocialPostId = table.Column(type: "uniqueidentifier", nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + Content = table.Column(type: "nvarchar(max)", maxLength: 8192, 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_Adm_T_SocialComment", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_SocialComment_Adm_T_SocialPost_SocialPostId", + column: x => x.SocialPostId, + principalTable: "Adm_T_SocialPost", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_SocialLike", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + SocialPostId = table.Column(type: "uniqueidentifier", nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Adm_T_SocialLike", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_SocialLike_Adm_T_SocialPost_SocialPostId", + column: x => x.SocialPostId, + principalTable: "Adm_T_SocialPost", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_SocialLocation", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + SocialPostId = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Address = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Lat = table.Column(type: "float", nullable: true), + Lng = table.Column(type: "float", nullable: true), + PlaceId = table.Column(type: "nvarchar(128)", maxLength: 128, 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_Adm_T_SocialLocation", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_SocialLocation_Adm_T_SocialPost_SocialPostId", + column: x => x.SocialPostId, + principalTable: "Adm_T_SocialPost", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_SocialMedia", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + SocialPostId = table.Column(type: "uniqueidentifier", nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Urls = table.Column(type: "nvarchar(max)", nullable: true), + PollQuestion = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + PollTotalVotes = table.Column(type: "int", nullable: true), + PollEndsAt = table.Column(type: "datetime2", nullable: true), + PollUserVoteId = table.Column(type: "nvarchar(128)", maxLength: 128, 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_Adm_T_SocialMedia", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_SocialMedia_Adm_T_SocialPost_SocialPostId", + column: x => x.SocialPostId, + principalTable: "Adm_T_SocialPost", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_SurveyQuestion", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + SurveyId = table.Column(type: "uniqueidentifier", nullable: false), + QuestionText = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Order = table.Column(type: "int", nullable: false), + IsRequired = table.Column(type: "bit", 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_Adm_T_SurveyQuestion", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_SurveyQuestion_Adm_T_Survey_SurveyId", + column: x => x.SurveyId, + principalTable: "Adm_T_Survey", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_SurveyResponse", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + SurveyId = table.Column(type: "uniqueidentifier", nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + SubmissionTime = table.Column(type: "datetime2", 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_Adm_T_SurveyResponse", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_SurveyResponse_Adm_T_Survey_SurveyId", + column: x => x.SurveyId, + principalTable: "Adm_T_Survey", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_VideoroomAttandance", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + BranchId = table.Column(type: "uniqueidentifier", nullable: true), + SessionId = table.Column(type: "uniqueidentifier", nullable: false), + StudentId = table.Column(type: "uniqueidentifier", nullable: true), + StudentName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + JoinTime = table.Column(type: "datetime2", nullable: false), + LeaveTime = table.Column(type: "datetime2", nullable: true), + TotalDurationMinutes = table.Column(type: "int", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Adm_T_VideoroomAttandance", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_VideoroomAttandance_Adm_T_Videoroom_SessionId", + column: x => x.SessionId, + principalTable: "Adm_T_Videoroom", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_VideoroomChat", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + BranchId = table.Column(type: "uniqueidentifier", nullable: true), + SessionId = table.Column(type: "uniqueidentifier", nullable: false), + SenderId = table.Column(type: "uniqueidentifier", nullable: true), + SenderName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Message = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: false), + Timestamp = table.Column(type: "datetime2", nullable: false), + RecipientId = table.Column(type: "uniqueidentifier", nullable: true), + RecipientName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + IsTeacher = table.Column(type: "bit", nullable: false), + MessageType = table.Column(type: "nvarchar(64)", maxLength: 64, 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_Adm_T_VideoroomChat", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_VideoroomChat_Adm_T_Videoroom_SessionId", + column: x => x.SessionId, + principalTable: "Adm_T_Videoroom", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_VideoroomParticipant", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + BranchId = table.Column(type: "uniqueidentifier", nullable: true), + SessionId = table.Column(type: "uniqueidentifier", nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + UserName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + IsTeacher = table.Column(type: "bit", nullable: false), + IsAudioMuted = table.Column(type: "bit", nullable: false), + IsVideoMuted = table.Column(type: "bit", nullable: false), + IsHandRaised = table.Column(type: "bit", nullable: false), + IsKicked = table.Column(type: "bit", nullable: false, defaultValue: false), + IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), + JoinTime = table.Column(type: "datetime2", nullable: false), + ConnectionId = table.Column(type: "nvarchar(128)", maxLength: 128, 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_Adm_T_VideoroomParticipant", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_VideoroomParticipant_Adm_T_Videoroom_SessionId", + column: x => x.SessionId, + principalTable: "Adm_T_Videoroom", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "OpenIddictAuthorizations", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ApplicationId = table.Column(type: "uniqueidentifier", nullable: true), + CreationDate = table.Column(type: "datetime2", nullable: true), + Properties = table.Column(type: "nvarchar(max)", nullable: true), + Scopes = table.Column(type: "nvarchar(max)", nullable: true), + Status = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Subject = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: true), + Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: false), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_OpenIddictAuthorizations", x => x.Id); + table.ForeignKey( + name: "FK_OpenIddictAuthorizations_OpenIddictApplications_ApplicationId", + column: x => x.ApplicationId, + principalTable: "OpenIddictApplications", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_BackgroundWorker_MailQueue", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TemplateId = table.Column(type: "uniqueidentifier", nullable: false), + From = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + To = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + MailParameter = table.Column(type: "nvarchar(max)", maxLength: 8192, nullable: true), + TableName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + TableParameter = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Attachment = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + AttachmentParameter = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + SendStatus = table.Column(type: "bit", nullable: false), + SendTime = table.Column(type: "datetime2", nullable: true), + AwsMessageId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + RelatedRecordId = table.Column(type: "nvarchar(128)", maxLength: 128, 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_Sas_H_BackgroundWorker_MailQueue", x => x.Id); + table.UniqueConstraint("AK_Sas_H_BackgroundWorker_MailQueue_AwsMessageId", x => x.AwsMessageId); + table.ForeignKey( + name: "FK_Sas_H_BackgroundWorker_MailQueue_Sas_H_BackgroundWorker_MailQueueTableFormat_TableName", + column: x => x.TableName, + principalTable: "Sas_H_BackgroundWorker_MailQueueTableFormat", + principalColumn: "TableName", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_BlogPost", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Slug = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + ContentTr = table.Column(type: "nvarchar(max)", nullable: false), + ContentEn = table.Column(type: "nvarchar(max)", nullable: false), + Summary = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false), + CoverImage = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + ReadTime = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CategoryId = table.Column(type: "uniqueidentifier", nullable: false), + Author = table.Column(type: "nvarchar(max)", nullable: true), + ViewCount = table.Column(type: "int", nullable: true), + LikeCount = table.Column(type: "int", nullable: true), + CommentCount = table.Column(type: "int", nullable: true), + IsPublished = table.Column(type: "bit", nullable: false), + PublishedAt = table.Column(type: "datetime2", 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_Sas_H_BlogPost", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_BlogPost_Sas_H_BlogCategory_CategoryId", + column: x => x.CategoryId, + principalTable: "Sas_H_BlogCategory", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_Country", + columns: table => new + { + Id = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + GroupName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Currency = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), + PhoneCode = table.Column(type: "int", nullable: false), + TaxLabel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ZipRequired = table.Column(type: "bit", nullable: false), + StateRequired = table.Column(type: "bit", nullable: false), + 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_H_Country", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_Country_Sas_H_CountryGroup_GroupName", + column: x => x.GroupName, + principalTable: "Sas_H_CountryGroup", + principalColumn: "Name", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_LanguageText", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + Key = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + ResourceName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Value = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_LanguageText", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_LanguageText_Sas_H_LanguageKey_ResourceName_Key", + columns: x => new { x.ResourceName, x.Key }, + principalTable: "Sas_H_LanguageKey", + principalColumns: new[] { "ResourceName", "Key" }, + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Sas_H_LanguageText_Sas_H_Language_CultureName", + column: x => x.CultureName, + principalTable: "Sas_H_Language", + principalColumn: "CultureName", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_ListFormCustomization", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ListFormCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UserId = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + RoleId = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + FilterName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + CustomizationData = table.Column(type: "text", nullable: true), + CustomizationType = table.Column(type: "int", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_ListFormCustomization", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_ListFormCustomization_Sas_H_ListForm_ListFormCode", + column: x => x.ListFormCode, + principalTable: "Sas_H_ListForm", + principalColumn: "ListFormCode", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_ListFormField", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ListFormCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UserId = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + RoleId = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + CultureName = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: false), + FieldName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + CaptionName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + PlaceHolder = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Visible = table.Column(type: "bit", nullable: true, defaultValue: true), + IsActive = table.Column(type: "bit", nullable: true, defaultValue: true), + Width = table.Column(type: "int", nullable: true, defaultValue: 100), + ListOrderNo = table.Column(type: "int", nullable: true, defaultValue: 30), + SourceDbType = table.Column(type: "int", nullable: false), + SortIndex = table.Column(type: "int", nullable: true), + SortDirection = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true), + AllowSearch = table.Column(type: "bit", nullable: true, defaultValue: false), + AllowEditing = table.Column(type: "bit", nullable: true, defaultValue: true), + AllowAdding = table.Column(type: "bit", nullable: true, defaultValue: true), + BandName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + ColumnFilterJson = table.Column(type: "text", nullable: true), + ColumnHeaderJson = table.Column(type: "text", nullable: true), + GroupingJson = table.Column(type: "text", nullable: true), + ColumnCustomizationJson = table.Column(type: "text", nullable: true), + TotalSummaryJson = table.Column(type: "text", nullable: true), + GroupSummaryJson = table.Column(type: "text", nullable: true), + ColumnCssClass = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + ColumnCssValue = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + JoinTableJson = table.Column(type: "text", nullable: true), + LookupJson = table.Column(type: "text", nullable: true), + ValidationRuleJson = table.Column(type: "text", nullable: true), + ColumnStylingJson = table.Column(type: "text", nullable: true), + PermissionJson = table.Column(type: "text", nullable: true), + PivotSettingsJson = table.Column(type: "text", nullable: true), + Alignment = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true, defaultValue: "left"), + Format = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + EditorOptions = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_ListFormField", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_ListFormField_Sas_H_ListForm_ListFormCode", + column: x => x.ListFormCode, + principalTable: "Sas_H_ListForm", + principalColumn: "ListFormCode", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_ListFormImport", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ListFormCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + BlobName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + TotalRows = table.Column(type: "int", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_ListFormImport", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_ListFormImport_Sas_H_ListForm_ListFormCode", + column: x => x.ListFormCode, + principalTable: "Sas_H_ListForm", + principalColumn: "ListFormCode", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_NotificationRule", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + NotificationTypeId = table.Column(type: "uniqueidentifier", nullable: false), + RecipientType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecipientId = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Channel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + IsActive = table.Column(type: "bit", nullable: false), + IsFixed = table.Column(type: "bit", nullable: false), + IsCustomized = table.Column(type: "bit", 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_H_NotificationRule", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_NotificationRule_Sas_H_NotificationType_NotificationTypeId", + column: x => x.NotificationTypeId, + principalTable: "Sas_H_NotificationType", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_OrderItem", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + OrderId = table.Column(type: "uniqueidentifier", nullable: false), + ProductId = table.Column(type: "uniqueidentifier", nullable: false), + ProductName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + BillingCycle = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: false), + Quantity = table.Column(type: "int", nullable: false), + TotalPrice = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, 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_H_OrderItem", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_OrderItem_Sas_H_Order_OrderId", + column: x => x.OrderId, + principalTable: "Sas_H_Order", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_Skill", + columns: table => new + { + Id = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + SkillTypeId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, 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_H_Skill", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_Skill_Sas_H_SkillType_SkillTypeId", + column: x => x.SkillTypeId, + principalTable: "Sas_H_SkillType", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_SkillLevel", + columns: table => new + { + Id = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + SkillTypeId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Progress = table.Column(type: "int", nullable: false, defaultValue: 0), + IsDefault = table.Column(type: "bit", nullable: false, defaultValue: 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_H_SkillLevel", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_SkillLevel_Sas_H_SkillType_SkillTypeId", + column: x => x.SkillTypeId, + principalTable: "Sas_H_SkillType", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_Uom", + columns: table => new + { + Id = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UomCategoryId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Type = table.Column(type: "nvarchar(32)", maxLength: 32, nullable: false), + Ratio = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + IsActive = table.Column(type: "bit", nullable: false), + Rounding = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, 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_H_Uom", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_Uom_Sas_H_UomCategory_UomCategoryId", + column: x => x.UomCategoryId, + principalTable: "Sas_H_UomCategory", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "Sas_T_BranchUsers", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + BranchId = table.Column(type: "uniqueidentifier", nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_T_BranchUsers", x => x.Id); + table.ForeignKey( + name: "FK_Sas_T_BranchUsers_Sas_T_Branch_BranchId", + column: x => x.BranchId, + principalTable: "Sas_T_Branch", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "Sas_T_ForumTopic", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Title = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Content = table.Column(type: "nvarchar(max)", nullable: false), + CategoryId = table.Column(type: "uniqueidentifier", nullable: false), + AuthorId = table.Column(type: "uniqueidentifier", nullable: false), + AuthorName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + ViewCount = table.Column(type: "int", nullable: false), + ReplyCount = table.Column(type: "int", nullable: false), + LikeCount = table.Column(type: "int", nullable: false), + IsPinned = table.Column(type: "bit", nullable: false), + IsLocked = table.Column(type: "bit", nullable: false), + IsSolved = table.Column(type: "bit", nullable: false), + LastPostId = table.Column(type: "uniqueidentifier", nullable: true), + LastPostDate = table.Column(type: "datetime2", nullable: true), + LastPostUserId = table.Column(type: "uniqueidentifier", nullable: true), + LastPostUserName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_T_ForumTopic", x => x.Id); + table.ForeignKey( + name: "FK_Sas_T_ForumTopic_Sas_T_ForumCategory_CategoryId", + column: x => x.CategoryId, + principalTable: "Sas_T_ForumCategory", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "AbpEntityPropertyChanges", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + EntityChangeId = table.Column(type: "uniqueidentifier", nullable: false), + NewValue = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + OriginalValue = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + PropertyName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + PropertyTypeFullName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpEntityPropertyChanges", x => x.Id); + table.ForeignKey( + name: "FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId", + column: x => x.EntityChangeId, + principalTable: "AbpEntityChanges", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_EventComment", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + EventId = table.Column(type: "uniqueidentifier", nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: false), + Content = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + Likes = table.Column(type: "int", nullable: false, defaultValue: 0), + 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_Adm_T_EventComment", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_EventComment_Adm_T_Event_EventId", + column: x => x.EventId, + principalTable: "Adm_T_Event", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_EventLike", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + EventId = table.Column(type: "uniqueidentifier", nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Adm_T_EventLike", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_EventLike_Adm_T_Event_EventId", + column: x => x.EventId, + principalTable: "Adm_T_Event", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_SocialPollOption", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + SocialMediaId = table.Column(type: "uniqueidentifier", nullable: false), + Text = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false), + Votes = table.Column(type: "int", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Adm_T_SocialPollOption", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_SocialPollOption_Adm_T_SocialMedia_SocialMediaId", + column: x => x.SocialMediaId, + principalTable: "Adm_T_SocialMedia", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_SurveyQuestionOption", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + QuestionId = table.Column(type: "uniqueidentifier", nullable: false), + Text = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: false), + Order = table.Column(type: "int", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Adm_T_SurveyQuestionOption", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_SurveyQuestionOption_Adm_T_SurveyQuestion_QuestionId", + column: x => x.QuestionId, + principalTable: "Adm_T_SurveyQuestion", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Adm_T_SurveyAnswer", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ResponseId = table.Column(type: "uniqueidentifier", nullable: false), + QuestionId = table.Column(type: "uniqueidentifier", nullable: false), + QuestionType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Value = table.Column(type: "nvarchar(1024)", maxLength: 1024, 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_Adm_T_SurveyAnswer", x => x.Id); + table.ForeignKey( + name: "FK_Adm_T_SurveyAnswer_Adm_T_SurveyQuestion_QuestionId", + column: x => x.QuestionId, + principalTable: "Adm_T_SurveyQuestion", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + table.ForeignKey( + name: "FK_Adm_T_SurveyAnswer_Adm_T_SurveyResponse_ResponseId", + column: x => x.ResponseId, + principalTable: "Adm_T_SurveyResponse", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "OpenIddictTokens", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ApplicationId = table.Column(type: "uniqueidentifier", nullable: true), + AuthorizationId = table.Column(type: "uniqueidentifier", nullable: true), + CreationDate = table.Column(type: "datetime2", nullable: true), + ExpirationDate = table.Column(type: "datetime2", nullable: true), + Payload = table.Column(type: "nvarchar(max)", nullable: true), + Properties = table.Column(type: "nvarchar(max)", nullable: true), + RedemptionDate = table.Column(type: "datetime2", nullable: true), + ReferenceId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + Status = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Subject = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: true), + Type = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: false), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_OpenIddictTokens", x => x.Id); + table.ForeignKey( + name: "FK_OpenIddictTokens_OpenIddictApplications_ApplicationId", + column: x => x.ApplicationId, + principalTable: "OpenIddictApplications", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_OpenIddictTokens_OpenIddictAuthorizations_AuthorizationId", + column: x => x.AuthorizationId, + principalTable: "OpenIddictAuthorizations", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_BackgroundWorker_MailQueueEvents", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + AwsMessageId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + EventDate = table.Column(type: "datetime2", nullable: true), + Event = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + MailAddress = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + ResponseDescription = table.Column(type: "nvarchar(max)", 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_Sas_H_BackgroundWorker_MailQueueEvents", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_BackgroundWorker_MailQueueEvents_Sas_H_BackgroundWorker_MailQueue_AwsMessageId", + column: x => x.AwsMessageId, + principalTable: "Sas_H_BackgroundWorker_MailQueue", + principalColumn: "AwsMessageId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_City", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Country = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + PlateCode = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + CountryId = table.Column(type: "nvarchar(128)", 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_Sas_H_City", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_City_Sas_H_Country_CountryId", + column: x => x.CountryId, + principalTable: "Sas_H_Country", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_ListFormImportLog", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ImportId = table.Column(type: "uniqueidentifier", nullable: false), + BlobName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExecRows = table.Column(type: "int", nullable: false), + ValidRows = table.Column(type: "int", nullable: false), + ErrorRows = table.Column(type: "int", nullable: false), + Progress = table.Column(type: "float", nullable: false), + ErrorsJson = table.Column(type: "text", 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_Sas_H_ListFormImportLog", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_ListFormImportLog_Sas_H_ListFormImport_ImportId", + column: x => x.ImportId, + principalTable: "Sas_H_ListFormImport", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_Notification", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + NotificationRuleId = table.Column(type: "uniqueidentifier", nullable: false), + NotificationChannel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + NotificationTypeId = table.Column(type: "uniqueidentifier", nullable: false), + Identifier = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + Message = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: false), + IsSent = table.Column(type: "bit", nullable: false), + IsRead = table.Column(type: "bit", nullable: false), + ReadTime = table.Column(type: "datetime2", 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_Sas_H_Notification", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_Notification_Sas_H_NotificationRule_NotificationRuleId", + column: x => x.NotificationRuleId, + principalTable: "Sas_H_NotificationRule", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Sas_H_Notification_Sas_H_NotificationType_NotificationTypeId", + column: x => x.NotificationTypeId, + principalTable: "Sas_H_NotificationType", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "Sas_T_ForumPost", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TopicId = table.Column(type: "uniqueidentifier", nullable: false), + Content = table.Column(type: "nvarchar(max)", nullable: false), + AuthorId = table.Column(type: "uniqueidentifier", nullable: false), + AuthorName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + LikeCount = table.Column(type: "int", nullable: true), + IsAcceptedAnswer = table.Column(type: "bit", nullable: true), + ParentPostId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_T_ForumPost", x => x.Id); + table.ForeignKey( + name: "FK_Sas_T_ForumPost_Sas_T_ForumPost_ParentPostId", + column: x => x.ParentPostId, + principalTable: "Sas_T_ForumPost", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + table.ForeignKey( + name: "FK_Sas_T_ForumPost_Sas_T_ForumTopic_TopicId", + column: x => x.TopicId, + principalTable: "Sas_T_ForumTopic", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Sas_H_District", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Country = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + City = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Township = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + CityId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Sas_H_District", x => x.Id); + table.ForeignKey( + name: "FK_Sas_H_District_Sas_H_City_CityId", + column: x => x.CityId, + principalTable: "Sas_H_City", + principalColumn: "Id"); + }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogActions_AuditLogId", + table: "AbpAuditLogActions", + column: "AuditLogId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_ExecutionTime", + table: "AbpAuditLogActions", + columns: new[] { "TenantId", "ServiceName", "MethodName", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogs_TenantId_ExecutionTime", + table: "AbpAuditLogs", + columns: new[] { "TenantId", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogs_TenantId_UserId_ExecutionTime", + table: "AbpAuditLogs", + columns: new[] { "TenantId", "UserId", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpBackgroundJobs_IsAbandoned_NextTryTime", + table: "AbpBackgroundJobs", + columns: new[] { "IsAbandoned", "NextTryTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChanges_AuditLogId", + table: "AbpEntityChanges", + column: "AuditLogId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChanges_TenantId_EntityTypeFullName_EntityId", + table: "AbpEntityChanges", + columns: new[] { "TenantId", "EntityTypeFullName", "EntityId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityPropertyChanges_EntityChangeId", + table: "AbpEntityPropertyChanges", + column: "EntityChangeId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpFeatureGroups_Name", + table: "AbpFeatureGroups", + column: "Name", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AbpFeatures_GroupName", + table: "AbpFeatures", + column: "GroupName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpFeatures_Name", + table: "AbpFeatures", + column: "Name", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey", + table: "AbpFeatureValues", + columns: new[] { "Name", "ProviderName", "ProviderKey" }, + unique: true, + filter: "[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_TargetTenantId", + table: "AbpLinkUsers", + columns: new[] { "SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId" }, + unique: true, + filter: "[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId", + table: "AbpOrganizationUnitRoles", + columns: new[] { "RoleId", "OrganizationUnitId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnits_Code", + table: "AbpOrganizationUnits", + column: "Code"); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnits_ParentId", + table: "AbpOrganizationUnits", + column: "ParentId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpPermissionGrants_TenantId_Name_ProviderName_ProviderKey", + table: "AbpPermissionGrants", + columns: new[] { "TenantId", "Name", "ProviderName", "ProviderKey" }, + unique: true, + filter: "[TenantId] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_AbpPermissionGroups_Name", + table: "AbpPermissionGroups", + column: "Name", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AbpPermissions_GroupName", + table: "AbpPermissions", + column: "GroupName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpPermissions_Name", + table: "AbpPermissions", + column: "Name", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoleClaims_RoleId", + table: "AbpRoleClaims", + column: "RoleId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoles_NormalizedName", + table: "AbpRoles", + column: "NormalizedName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_Action", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "Action" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_ApplicationName", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "ApplicationName" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_Identity", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "Identity" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_UserId", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSessions_Device", + table: "AbpSessions", + column: "Device"); + + migrationBuilder.CreateIndex( + name: "IX_AbpSessions_SessionId", + table: "AbpSessions", + column: "SessionId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpSessions_TenantId_UserId", + table: "AbpSessions", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSettingDefinitions_Name", + table: "AbpSettingDefinitions", + column: "Name", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AbpSettings_Name_ProviderName_ProviderKey", + table: "AbpSettings", + columns: new[] { "Name", "ProviderName", "ProviderKey" }, + unique: true, + filter: "[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_AbpTenants_Name", + table: "AbpTenants", + column: "Name"); + + migrationBuilder.CreateIndex( + name: "IX_AbpTenants_NormalizedName", + table: "AbpTenants", + column: "NormalizedName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserClaims_UserId", + table: "AbpUserClaims", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserLogins_LoginProvider_ProviderKey", + table: "AbpUserLogins", + columns: new[] { "LoginProvider", "ProviderKey" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserOrganizationUnits_UserId_OrganizationUnitId", + table: "AbpUserOrganizationUnits", + columns: new[] { "UserId", "OrganizationUnitId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserRoles_RoleId_UserId", + table: "AbpUserRoles", + columns: new[] { "RoleId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_Email", + table: "AbpUsers", + column: "Email"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_NormalizedEmail", + table: "AbpUsers", + column: "NormalizedEmail"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_NormalizedUserName", + table: "AbpUsers", + column: "NormalizedUserName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_UserName", + table: "AbpUsers", + column: "UserName"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_Announcement_TenantId_Title", + table: "Adm_T_Announcement", + columns: new[] { "TenantId", "Title" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_Department_TenantId_Name", + table: "Adm_T_Department", + columns: new[] { "TenantId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_Event_CategoryId", + table: "Adm_T_Event", + column: "CategoryId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_Event_TenantId_CategoryId_TypeId_Name", + table: "Adm_T_Event", + columns: new[] { "TenantId", "CategoryId", "TypeId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_Event_TypeId", + table: "Adm_T_Event", + column: "TypeId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_EventCategory_TenantId_Name", + table: "Adm_T_EventCategory", + columns: new[] { "TenantId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_EventComment_EventId", + table: "Adm_T_EventComment", + column: "EventId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_EventLike_EventId", + table: "Adm_T_EventLike", + column: "EventId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_EventType_TenantId_Name", + table: "Adm_T_EventType", + columns: new[] { "TenantId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_IpRestriction_TenantId_ResourceType_ResourceId_IP", + table: "Adm_T_IpRestriction", + columns: new[] { "TenantId", "ResourceType", "ResourceId", "IP" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_JobPosition_DepartmentId", + table: "Adm_T_JobPosition", + column: "DepartmentId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_JobPosition_TenantId_Name_DepartmentId", + table: "Adm_T_JobPosition", + columns: new[] { "TenantId", "Name", "DepartmentId" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_ReportCategory_TenantId_Name", + table: "Adm_T_ReportCategory", + columns: new[] { "TenantId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_ReportTemplate_CategoryId", + table: "Adm_T_ReportTemplate", + column: "CategoryId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_ReportTemplate_TenantId_Name", + table: "Adm_T_ReportTemplate", + columns: new[] { "TenantId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_Sector_TenantId_Name", + table: "Adm_T_Sector", + columns: new[] { "TenantId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_Sequence_TenantId_Name", + table: "Adm_T_Sequence", + columns: new[] { "TenantId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_SocialComment_SocialPostId", + table: "Adm_T_SocialComment", + column: "SocialPostId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_SocialLike_SocialPostId", + table: "Adm_T_SocialLike", + column: "SocialPostId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_SocialLocation_SocialPostId", + table: "Adm_T_SocialLocation", + column: "SocialPostId", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_SocialMedia_SocialPostId", + table: "Adm_T_SocialMedia", + column: "SocialPostId", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_SocialPollOption_SocialMediaId", + table: "Adm_T_SocialPollOption", + column: "SocialMediaId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_Survey_TenantId_Title", + table: "Adm_T_Survey", + columns: new[] { "TenantId", "Title" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_SurveyAnswer_QuestionId", + table: "Adm_T_SurveyAnswer", + column: "QuestionId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_SurveyAnswer_ResponseId", + table: "Adm_T_SurveyAnswer", + column: "ResponseId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_SurveyQuestion_SurveyId", + table: "Adm_T_SurveyQuestion", + column: "SurveyId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_SurveyQuestionOption_QuestionId", + table: "Adm_T_SurveyQuestionOption", + column: "QuestionId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_SurveyResponse_SurveyId", + table: "Adm_T_SurveyResponse", + column: "SurveyId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_Videoroom_TenantId_BranchId_Name", + table: "Adm_T_Videoroom", + columns: new[] { "TenantId", "BranchId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_VideoroomAttandance_SessionId", + table: "Adm_T_VideoroomAttandance", + column: "SessionId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_VideoroomChat_SessionId", + table: "Adm_T_VideoroomChat", + column: "SessionId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_VideoroomParticipant_SessionId", + table: "Adm_T_VideoroomParticipant", + column: "SessionId"); + + migrationBuilder.CreateIndex( + name: "IX_Adm_T_WorkHour_TenantId_Name", + table: "Adm_T_WorkHour", + columns: new[] { "TenantId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_OpenIddictApplications_ClientId", + table: "OpenIddictApplications", + column: "ClientId"); + + migrationBuilder.CreateIndex( + name: "IX_OpenIddictAuthorizations_ApplicationId_Status_Subject_Type", + table: "OpenIddictAuthorizations", + columns: new[] { "ApplicationId", "Status", "Subject", "Type" }); + + migrationBuilder.CreateIndex( + name: "IX_OpenIddictScopes_Name", + table: "OpenIddictScopes", + column: "Name"); + + migrationBuilder.CreateIndex( + name: "IX_OpenIddictTokens_ApplicationId_Status_Subject_Type", + table: "OpenIddictTokens", + columns: new[] { "ApplicationId", "Status", "Subject", "Type" }); + + migrationBuilder.CreateIndex( + name: "IX_OpenIddictTokens_AuthorizationId", + table: "OpenIddictTokens", + column: "AuthorizationId"); + + migrationBuilder.CreateIndex( + name: "IX_OpenIddictTokens_ReferenceId", + table: "OpenIddictTokens", + column: "ReferenceId"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_AiBot_Name", + table: "Sas_H_AiBot", + column: "Name", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_BackgroundWorker_Name", + table: "Sas_H_BackgroundWorker", + column: "Name", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_BackgroundWorker_MailQueue_TableName", + table: "Sas_H_BackgroundWorker_MailQueue", + column: "TableName"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_BackgroundWorker_MailQueueEvents_AwsMessageId", + table: "Sas_H_BackgroundWorker_MailQueueEvents", + column: "AwsMessageId"); + + migrationBuilder.CreateIndex( + name: "IX_MailQueueTableFormat", + table: "Sas_H_BackgroundWorker_MailQueueTableFormat", + columns: new[] { "TableName", "Order" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_BlogCategory_Name", + table: "Sas_H_BlogCategory", + column: "Name", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_BlogPost_CategoryId_Title", + table: "Sas_H_BlogPost", + columns: new[] { "CategoryId", "Title" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_City_Country_Name", + table: "Sas_H_City", + columns: new[] { "Country", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_City_CountryId", + table: "Sas_H_City", + column: "CountryId"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_ContactTitle_Title", + table: "Sas_H_ContactTitle", + column: "Title", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_Country_GroupName", + table: "Sas_H_Country", + column: "GroupName"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_Country_Name", + table: "Sas_H_Country", + column: "Name", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_CountryGroup_Name", + table: "Sas_H_CountryGroup", + column: "Name", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_CrudEndpoint_TenantId_EntityName_Method_Path", + table: "Sas_H_CrudEndpoint", + columns: new[] { "TenantId", "EntityName", "Method", "Path" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_Currency_Id_Name", + table: "Sas_H_Currency", + columns: new[] { "Id", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_CustomComponent_TenantId_Name", + table: "Sas_H_CustomComponent", + columns: new[] { "TenantId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_CustomEndpoint_TenantId_Name", + table: "Sas_H_CustomEndpoint", + columns: new[] { "TenantId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_DataSource_Code", + table: "Sas_H_DataSource", + column: "Code", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_District_CityId", + table: "Sas_H_District", + column: "CityId"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_District_Country_City_Name_Township", + table: "Sas_H_District", + columns: new[] { "Country", "City", "Name", "Township" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_DynamicService_TenantId_Name", + table: "Sas_H_DynamicService", + columns: new[] { "TenantId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_InstallmentOption_Name", + table: "Sas_H_InstallmentOption", + column: "Name", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_LanguageKey_ResourceName_Key", + table: "Sas_H_LanguageKey", + columns: new[] { "ResourceName", "Key" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_LanguageText_CultureName", + table: "Sas_H_LanguageText", + column: "CultureName"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_LanguageText_ResourceName_Key", + table: "Sas_H_LanguageText", + columns: new[] { "ResourceName", "Key" }); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_ListForm_ListFormCode", + table: "Sas_H_ListForm", + column: "ListFormCode", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_ListFormCustomization_ListFormCode", + table: "Sas_H_ListFormCustomization", + column: "ListFormCode"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_ListFormField_ListFormCode_UserId_RoleId_CultureName_FieldName", + table: "Sas_H_ListFormField", + columns: new[] { "ListFormCode", "UserId", "RoleId", "CultureName", "FieldName" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_ListFormImport_ListFormCode", + table: "Sas_H_ListFormImport", + column: "ListFormCode"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_ListFormImportLog_ImportId", + table: "Sas_H_ListFormImportLog", + column: "ImportId"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_Menu_Code", + table: "Sas_H_Menu", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_MenuGroup_Name", + table: "Sas_H_MenuGroup", + column: "Name", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_Notification_NotificationRuleId", + table: "Sas_H_Notification", + column: "NotificationRuleId"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_Notification_NotificationTypeId", + table: "Sas_H_Notification", + column: "NotificationTypeId"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_NotificationRule_NotificationTypeId", + table: "Sas_H_NotificationRule", + column: "NotificationTypeId"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_OrderItem_OrderId", + table: "Sas_H_OrderItem", + column: "OrderId"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_PaymentMethod_Name", + table: "Sas_H_PaymentMethod", + column: "Name", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_Product_Name", + table: "Sas_H_Product", + column: "Name", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_Route_Key", + table: "Sas_H_Route", + column: "Key", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_Route_Path", + table: "Sas_H_Route", + column: "Path", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_Service_Title", + table: "Sas_H_Service", + column: "Title", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_Skill_SkillTypeId_Name", + table: "Sas_H_Skill", + columns: new[] { "SkillTypeId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_SkillLevel_SkillTypeId_Name", + table: "Sas_H_SkillLevel", + columns: new[] { "SkillTypeId", "Name" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_SkillType_Name", + table: "Sas_H_SkillType", + column: "Name", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_Uom_Name_UomCategoryId", + table: "Sas_H_Uom", + columns: new[] { "Name", "UomCategoryId" }, + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_Uom_UomCategoryId", + table: "Sas_H_Uom", + column: "UomCategoryId"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_H_UomCategory_Name", + table: "Sas_H_UomCategory", + column: "Name", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_T_Branch_Code", + table: "Sas_T_Branch", + column: "Code", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_T_BranchUsers_BranchId", + table: "Sas_T_BranchUsers", + column: "BranchId"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_T_BranchUsers_TenantId_BranchId_UserId", + table: "Sas_T_BranchUsers", + columns: new[] { "TenantId", "BranchId", "UserId" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Sas_T_ForumCategory_Name", + table: "Sas_T_ForumCategory", + column: "Name", + unique: true, + filter: "[IsDeleted] = 0"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_T_ForumPost_ParentPostId", + table: "Sas_T_ForumPost", + column: "ParentPostId"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_T_ForumPost_TopicId", + table: "Sas_T_ForumPost", + column: "TopicId"); + + migrationBuilder.CreateIndex( + name: "IX_Sas_T_ForumTopic_CategoryId", + table: "Sas_T_ForumTopic", + column: "CategoryId"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "AbpAuditLogActions"); + + migrationBuilder.DropTable( + name: "AbpAuditLogExcelFiles"); + + migrationBuilder.DropTable( + name: "AbpBackgroundJobs"); + + migrationBuilder.DropTable( + name: "AbpClaimTypes"); + + migrationBuilder.DropTable( + name: "AbpEntityPropertyChanges"); + + migrationBuilder.DropTable( + name: "AbpFeatureGroups"); + + migrationBuilder.DropTable( + name: "AbpFeatures"); + + migrationBuilder.DropTable( + name: "AbpFeatureValues"); + + migrationBuilder.DropTable( + name: "AbpLinkUsers"); + + migrationBuilder.DropTable( + name: "AbpOrganizationUnitRoles"); + + migrationBuilder.DropTable( + name: "AbpPermissionGrants"); + + migrationBuilder.DropTable( + name: "AbpPermissionGroups"); + + migrationBuilder.DropTable( + name: "AbpPermissions"); + + migrationBuilder.DropTable( + name: "AbpRoleClaims"); + + migrationBuilder.DropTable( + name: "AbpSecurityLogs"); + + migrationBuilder.DropTable( + name: "AbpSessions"); + + migrationBuilder.DropTable( + name: "AbpSettingDefinitions"); + + migrationBuilder.DropTable( + name: "AbpSettings"); + + migrationBuilder.DropTable( + name: "AbpTenantConnectionStrings"); + + migrationBuilder.DropTable( + name: "AbpUserClaims"); + + migrationBuilder.DropTable( + name: "AbpUserDelegations"); + + migrationBuilder.DropTable( + name: "AbpUserLogins"); + + migrationBuilder.DropTable( + name: "AbpUserOrganizationUnits"); + + migrationBuilder.DropTable( + name: "AbpUserRoles"); + + migrationBuilder.DropTable( + name: "AbpUserTokens"); + + migrationBuilder.DropTable( + name: "Adm_T_Announcement"); + + migrationBuilder.DropTable( + name: "Adm_T_EventComment"); + + migrationBuilder.DropTable( + name: "Adm_T_EventLike"); + + migrationBuilder.DropTable( + name: "Adm_T_IpRestriction"); + + migrationBuilder.DropTable( + name: "Adm_T_JobPosition"); + + migrationBuilder.DropTable( + name: "Adm_T_Note"); + + migrationBuilder.DropTable( + name: "Adm_T_ReportTemplate"); + + migrationBuilder.DropTable( + name: "Adm_T_Sector"); + + migrationBuilder.DropTable( + name: "Adm_T_Sequence"); + + migrationBuilder.DropTable( + name: "Adm_T_SocialComment"); + + migrationBuilder.DropTable( + name: "Adm_T_SocialLike"); + + migrationBuilder.DropTable( + name: "Adm_T_SocialLocation"); + + migrationBuilder.DropTable( + name: "Adm_T_SocialPollOption"); + + migrationBuilder.DropTable( + name: "Adm_T_SurveyAnswer"); + + migrationBuilder.DropTable( + name: "Adm_T_SurveyQuestionOption"); + + migrationBuilder.DropTable( + name: "Adm_T_VideoroomAttandance"); + + migrationBuilder.DropTable( + name: "Adm_T_VideoroomChat"); + + migrationBuilder.DropTable( + name: "Adm_T_VideoroomParticipant"); + + migrationBuilder.DropTable( + name: "Adm_T_WorkHour"); + + migrationBuilder.DropTable( + name: "OpenIddictScopes"); + + migrationBuilder.DropTable( + name: "OpenIddictTokens"); + + migrationBuilder.DropTable( + name: "Sas_H_About"); + + migrationBuilder.DropTable( + name: "Sas_H_AiBot"); + + migrationBuilder.DropTable( + name: "Sas_H_BackgroundWorker"); + + migrationBuilder.DropTable( + name: "Sas_H_BackgroundWorker_MailQueueEvents"); + + migrationBuilder.DropTable( + name: "Sas_H_BlogPost"); + + migrationBuilder.DropTable( + name: "Sas_H_Contact"); + + migrationBuilder.DropTable( + name: "Sas_H_ContactTitle"); + + migrationBuilder.DropTable( + name: "Sas_H_CrudEndpoint"); + + migrationBuilder.DropTable( + name: "Sas_H_Currency"); + + migrationBuilder.DropTable( + name: "Sas_H_CustomComponent"); + + migrationBuilder.DropTable( + name: "Sas_H_CustomEndpoint"); + + migrationBuilder.DropTable( + name: "Sas_H_DataSource"); + + migrationBuilder.DropTable( + name: "Sas_H_Demo"); + + migrationBuilder.DropTable( + name: "Sas_H_District"); + + migrationBuilder.DropTable( + name: "Sas_H_DynamicService"); + + migrationBuilder.DropTable( + name: "Sas_H_Home"); + + migrationBuilder.DropTable( + name: "Sas_H_InstallmentOption"); + + migrationBuilder.DropTable( + name: "Sas_H_LanguageText"); + + migrationBuilder.DropTable( + name: "Sas_H_ListFormCustomization"); + + migrationBuilder.DropTable( + name: "Sas_H_ListFormField"); + + migrationBuilder.DropTable( + name: "Sas_H_ListFormImportLog"); + + migrationBuilder.DropTable( + name: "Sas_H_ListFormWorkflow"); + + migrationBuilder.DropTable( + name: "Sas_H_LogEntry"); + + migrationBuilder.DropTable( + name: "Sas_H_Menu"); + + migrationBuilder.DropTable( + name: "Sas_H_MenuGroup"); + + migrationBuilder.DropTable( + name: "Sas_H_Notification"); + + migrationBuilder.DropTable( + name: "Sas_H_OrderItem"); + + migrationBuilder.DropTable( + name: "Sas_H_PaymentMethod"); + + migrationBuilder.DropTable( + name: "Sas_H_Product"); + + migrationBuilder.DropTable( + name: "Sas_H_Route"); + + migrationBuilder.DropTable( + name: "Sas_H_Service"); + + migrationBuilder.DropTable( + name: "Sas_H_SettingDefinition"); + + migrationBuilder.DropTable( + name: "Sas_H_Skill"); + + migrationBuilder.DropTable( + name: "Sas_H_SkillLevel"); + + migrationBuilder.DropTable( + name: "Sas_H_Uom"); + + migrationBuilder.DropTable( + name: "Sas_T_BranchUsers"); + + migrationBuilder.DropTable( + name: "Sas_T_ForumPost"); + + migrationBuilder.DropTable( + name: "Sas_T_GlobalSearch"); + + migrationBuilder.DropTable( + name: "AbpEntityChanges"); + + migrationBuilder.DropTable( + name: "AbpTenants"); + + migrationBuilder.DropTable( + name: "AbpOrganizationUnits"); + + migrationBuilder.DropTable( + name: "AbpRoles"); + + migrationBuilder.DropTable( + name: "AbpUsers"); + + migrationBuilder.DropTable( + name: "Adm_T_Event"); + + migrationBuilder.DropTable( + name: "Adm_T_Department"); + + migrationBuilder.DropTable( + name: "Adm_T_ReportCategory"); + + migrationBuilder.DropTable( + name: "Adm_T_SocialMedia"); + + migrationBuilder.DropTable( + name: "Adm_T_SurveyResponse"); + + migrationBuilder.DropTable( + name: "Adm_T_SurveyQuestion"); + + migrationBuilder.DropTable( + name: "Adm_T_Videoroom"); + + migrationBuilder.DropTable( + name: "OpenIddictAuthorizations"); + + migrationBuilder.DropTable( + name: "Sas_H_BackgroundWorker_MailQueue"); + + migrationBuilder.DropTable( + name: "Sas_H_BlogCategory"); + + migrationBuilder.DropTable( + name: "Sas_H_City"); + + migrationBuilder.DropTable( + name: "Sas_H_LanguageKey"); + + migrationBuilder.DropTable( + name: "Sas_H_Language"); + + migrationBuilder.DropTable( + name: "Sas_H_ListFormImport"); + + migrationBuilder.DropTable( + name: "Sas_H_NotificationRule"); + + migrationBuilder.DropTable( + name: "Sas_H_Order"); + + migrationBuilder.DropTable( + name: "Sas_H_SkillType"); + + migrationBuilder.DropTable( + name: "Sas_H_UomCategory"); + + migrationBuilder.DropTable( + name: "Sas_T_Branch"); + + migrationBuilder.DropTable( + name: "Sas_T_ForumTopic"); + + migrationBuilder.DropTable( + name: "AbpAuditLogs"); + + migrationBuilder.DropTable( + name: "Adm_T_EventCategory"); + + migrationBuilder.DropTable( + name: "Adm_T_EventType"); + + migrationBuilder.DropTable( + name: "Adm_T_SocialPost"); + + migrationBuilder.DropTable( + name: "Adm_T_Survey"); + + migrationBuilder.DropTable( + name: "OpenIddictApplications"); + + migrationBuilder.DropTable( + name: "Sas_H_BackgroundWorker_MailQueueTableFormat"); + + migrationBuilder.DropTable( + name: "Sas_H_Country"); + + migrationBuilder.DropTable( + name: "Sas_H_ListForm"); + + migrationBuilder.DropTable( + name: "Sas_H_NotificationType"); + + migrationBuilder.DropTable( + name: "Sas_T_ForumCategory"); + + migrationBuilder.DropTable( + name: "Sas_H_CountryGroup"); + } + } +} diff --git a/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs b/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs index 9ab7aa0..990af2d 100644 --- a/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs +++ b/api/src/Sozsoft.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs @@ -2,8 +2,8 @@ using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Sozsoft.Platform.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore; @@ -18,75 +18,72 @@ namespace Sozsoft.Platform.Migrations { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql) + .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) .HasAnnotation("ProductVersion", "10.0.4") - .HasAnnotation("Relational:MaxIdentifierLength", 63); + .HasAnnotation("Relational:MaxIdentifierLength", 128); - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("Sequence", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("FormatTemplate") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasDefaultValue("{Prefix}{Number}{Suffix}") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasDefaultValue("{Prefix}{Number}{Suffix}"); b.Property("IncrementStep") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(1); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LastPeriodKey") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("NextNumber") .ValueGeneratedOnAdd() @@ -95,17 +92,16 @@ namespace Sozsoft.Platform.Migrations b.Property("PaddingSize") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(6); b.Property("Prefix") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("ResetPeriod") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0); b.Property("StartNumber") @@ -113,18 +109,17 @@ namespace Sozsoft.Platform.Migrations b.Property("Suffix") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_Sequence", (string)null); }); @@ -133,34 +128,30 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CultureName") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("DisplayName") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("IsEnabled") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("TwoLetterISOLanguageName") .IsRequired() .HasMaxLength(2) - .HasColumnType("character varying(2)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2)"); b.Property("UiCultureName") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.HasKey("Id"); @@ -171,19 +162,17 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Key") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ResourceName") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -197,29 +186,25 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CultureName") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("Key") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ResourceName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Value") .IsRequired() .HasMaxLength(4096) - .HasColumnType("character varying(4096)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.HasKey("Id"); @@ -234,94 +219,85 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Attachment") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("AttachmentParameter") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("AwsMessageId") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("From") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MailParameter") .HasMaxLength(8192) - .HasColumnType("character varying(8192)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("RelatedRecordId") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("SendStatus") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("SendTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("TableName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TableParameter") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("TemplateId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("To") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -334,60 +310,56 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AwsMessageId") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Event") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("EventDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MailAddress") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ResponseDescription") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.HasKey("Id"); @@ -400,67 +372,58 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("integer"); + .HasColumnType("int"); - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("Caption") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ColumnName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Css") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("DataFormat") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("DataType") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("FooterCss") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("HeaderCss") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("IsHidden") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsProtected") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Order") .HasColumnType("smallint"); b.Property("SubTotal") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("TableName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Width") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); @@ -475,73 +438,70 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Identifier") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsRead") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsSent") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Message") .IsRequired() .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("NotificationChannel") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("NotificationRuleId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("NotificationTypeId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ReadTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -556,66 +516,63 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Channel") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsCustomized") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsFixed") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("NotificationTypeId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("RecipientId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("RecipientType") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -628,43 +585,42 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -674,49 +630,46 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.About", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DescriptionsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("SectionsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("StatsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.HasKey("Id"); @@ -726,26 +679,23 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.AiBot", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ApiUrl") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Description") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -758,97 +708,91 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Announcement", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Attachments") .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("Category") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Content") .IsRequired() .HasMaxLength(4096) - .HasColumnType("character varying(4096)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Excerpt") .IsRequired() .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("ExpiryDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ImageUrl") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsPinned") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("PublishDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Title") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ViewCount") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0); b.HasKey("Id"); b.HasIndex("TenantId", "Title") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_Announcement", (string)null); }); @@ -856,82 +800,76 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.BackgroundWorker", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AfterSp") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("BeforeSp") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("Cron") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("DataSourceCode") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Options") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("WorkerType") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_BackgroundWorker", (string)null); }); @@ -939,74 +877,70 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.BlogCategory", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("DisplayOrder") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Icon") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("PostCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Slug") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_BlogCategory", (string)null); }); @@ -1014,103 +948,95 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.BlogPost", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Author") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CategoryId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CommentCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ContentEn") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("ContentTr") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CoverImage") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsPublished") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LikeCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("PublishedAt") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ReadTime") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Slug") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Summary") .IsRequired() .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("Title") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ViewCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("CategoryId", "Title") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_BlogPost", (string)null); }); @@ -1118,132 +1044,117 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Branch", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Address1") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("Address2") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("City") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Code") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Country") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("District") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Email") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("FaxNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MobileNumber") .IsRequired() .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("PhoneNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("PostalCode") .HasMaxLength(16) - .HasColumnType("character varying(16)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(16)"); b.Property("TaxOffice") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Township") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("VknTckn") .HasColumnType("bigint"); b.Property("Website") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("Code") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_T_Branch", (string)null); }); @@ -1251,17 +1162,17 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.BranchUsers", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("BranchId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -1276,57 +1187,53 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.City", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Country") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CountryId") - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("PlateCode") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.HasKey("Id"); @@ -1334,7 +1241,7 @@ namespace Sozsoft.Platform.Migrations b.HasIndex("Country", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_City", (string)null); }); @@ -1342,72 +1249,65 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Contact", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Address") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("BankJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Email") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Location") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("MapJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PhoneNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("TaxNumber") .HasColumnType("bigint"); b.Property("WorkHoursJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.HasKey("Id"); @@ -1417,54 +1317,52 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ContactTitle", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Abbreviation") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Title") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("Title") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_ContactTitle", (string)null); }); @@ -1473,69 +1371,64 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("Currency") .IsRequired() .HasMaxLength(8) - .HasColumnType("character varying(8)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(8)"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("GroupName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("PhoneCode") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("StateRequired") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("TaxLabel") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ZipRequired") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.HasKey("Id"); @@ -1543,7 +1436,7 @@ namespace Sozsoft.Platform.Migrations b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_Country", (string)null); }); @@ -1551,50 +1444,48 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.CountryGroup", b => { b.Property("Id") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(450)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_CountryGroup", (string)null); }); @@ -1602,79 +1493,74 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.CrudEndpoint", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CsharpCode") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("EntityName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Method") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("OperationType") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Path") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "EntityName", "Method", "Path") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_CrudEndpoint", (string)null); }); @@ -1683,67 +1569,64 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LastUpdated") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Rate") .HasPrecision(18, 6) - .HasColumnType("numeric(18,6)"); + .HasColumnType("decimal(18,6)"); b.Property("Symbol") .HasMaxLength(8) - .HasColumnType("character varying(8)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(8)"); b.HasKey("Id"); b.HasIndex("Id", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_Currency", (string)null); }); @@ -1751,76 +1634,71 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.CustomComponent", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Dependencies") .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("Description") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Props") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_CustomComponent", (string)null); }); @@ -1828,89 +1706,81 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.CustomEndpoint", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DataSourceCode") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Method") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ParametersJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PermissionsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("Sql") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Url") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_CustomEndpoint", (string)null); }); @@ -1918,57 +1788,55 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.DataSource", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ConnectionString") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DataSourceType") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.HasKey("Id"); b.HasIndex("Code") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_DataSource", (string)null); }); @@ -1976,79 +1844,73 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Demo", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Address") .IsRequired() .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Email") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Message") .IsRequired() .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("NumberOfBranches") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("NumberOfUsers") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("OrganizationName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("PhoneNumber") .IsRequired() .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.HasKey("Id"); @@ -2058,56 +1920,55 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Department", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ParentId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_Department", (string)null); }); @@ -2115,62 +1976,58 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.District", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("City") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CityId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Country") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Township") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -2178,7 +2035,7 @@ namespace Sozsoft.Platform.Migrations b.HasIndex("Country", "City", "Name", "Township") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_District", (string)null); }); @@ -2186,105 +2043,97 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.DynamicService", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CodeHash") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("CompilationStatus") .IsRequired() .HasMaxLength(20) - .HasColumnType("character varying(20)"); + .HasColumnType("nvarchar(20)"); b.Property("ControllerName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("DisplayName") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastCompilationError") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LastSuccessfulCompilation") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("PrimaryEntityType") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Version") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(1); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_DynamicService", (string)null); }); @@ -2292,88 +2141,83 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Event", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CategoryId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("Date") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Likes") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ParticipantsCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Photos") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("Place") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Status") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("TypeId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("isPublished") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.HasKey("Id"); @@ -2384,7 +2228,7 @@ namespace Sozsoft.Platform.Migrations b.HasIndex("TenantId", "CategoryId", "TypeId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_Event", (string)null); }); @@ -2392,53 +2236,52 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.EventCategory", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_EventCategory", (string)null); }); @@ -2446,57 +2289,56 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.EventComment", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Content") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("EventId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Likes") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -2508,47 +2350,47 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.EventLike", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("EventId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -2560,53 +2402,52 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.EventType", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_EventType", (string)null); }); @@ -2615,39 +2456,34 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("integer"); + .HasColumnType("int"); - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("Group") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("System") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Term") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Url") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("Weight") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -2657,99 +2493,86 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Home", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CtaButtonLabelKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("CtaSubtitleKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("CtaTitleKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("FeaturesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("FeaturesSubtitleKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("FeaturesTitleKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("HeroBackgroundImageKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("HeroPrimaryCtaKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("HeroSecondaryCtaKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("SlidesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SolutionsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SolutionsSubtitleKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("SolutionsTitleKey") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -2759,59 +2582,58 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.InstallmentOption", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Commission") .HasPrecision(5, 3) - .HasColumnType("numeric(5,3)"); + .HasColumnType("decimal(5,3)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Installment") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("TenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_InstallmentOption", (string)null); }); @@ -2819,64 +2641,61 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.IpRestriction", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IP") .IsRequired() .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("ResourceId") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("ResourceType") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "ResourceType", "ResourceId", "IP") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_IpRestriction", (string)null); }); @@ -2884,52 +2703,51 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.JobPosition", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DepartmentId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ParentId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -2938,7 +2756,7 @@ namespace Sozsoft.Platform.Migrations b.HasIndex("TenantId", "Name", "DepartmentId") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_JobPosition", (string)null); }); @@ -2946,376 +2764,297 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ListForm", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AdaptiveLayoutJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("AnimationJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("AnnotationsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ArgumentAxisJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ColumnOptionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CommandColumnJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CommonAnnotationsSettingsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CommonAxisSettingsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CommonJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CommonPaneSettingsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CommonSeriesSettingsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CrosshairJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CultureName") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("CustomJsSourcesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CustomStyleSourcesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("DataSourceCode") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("DataSourceJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("DefaultFilter") .IsUnicode(true) - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("DeleteAfterCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("DeleteBeforeCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("DeleteCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("DeleteFieldsDefaultValueJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("DeleteServiceAddress") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Description") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("EditingFormJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("EditingOptionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ExportJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ExtraFilterJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("FilterPanelJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("FilterRowJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("FormFieldsDefaultValueJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("FullHeight") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("GanttOptionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("GroupPanelJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("HeaderFilterJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("Height") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("InsertAfterCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("InsertBeforeCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("InsertCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("InsertFieldsDefaultValueJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("InsertServiceAddress") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("IsBranch") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsOrganizationUnit") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsSubForm") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsTenant") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("KeyFieldDbSourceType") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("KeyFieldName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("LayoutJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("LegendJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ListFormCode") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ListFormType") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("MarginJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("Name") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("PageSize") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(50); b.Property("PagerOptionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PanesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PermissionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PivotOptionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("RoleId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("RowJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("SchedulerOptionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("ScrollBarJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SearchPanelJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SelectCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SelectCommandType") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("SelectFieldsDefaultValueJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SelectionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SeriesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ShowNote") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("SizeJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SortMode") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("StateStoringJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SubFormsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("SubFormsListFormType") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("TableName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Title") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("TitleJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("TooltipJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("TreeOptionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("UpdateAfterCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("UpdateBeforeCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("UpdateCommand") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("UpdateFieldsDefaultValueJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("UpdateServiceAddress") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("UserId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ValueAxisJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("WidgetsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("Width") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("WorkflowJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ZoomAndPanJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.HasKey("Id"); @@ -3328,65 +3067,60 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ListFormCustomization", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomizationData") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CustomizationType") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("FilterName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("ListFormCode") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("RoleId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("UserId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -3398,169 +3132,143 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ListFormField", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Alignment") .ValueGeneratedOnAdd() .HasMaxLength(20) - .HasColumnType("character varying(20)") - .HasDefaultValue("left") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)") + .HasDefaultValue("left"); b.Property("AllowAdding") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("AllowEditing") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("AllowSearch") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.Property("BandName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CaptionName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ColumnCssClass") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ColumnCssValue") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ColumnCustomizationJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ColumnFilterJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ColumnHeaderJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ColumnStylingJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CultureName") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("EditorOptions") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("FieldName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Format") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("GroupSummaryJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("GroupingJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("JoinTableJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ListFormCode") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ListOrderNo") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(30); b.Property("LookupJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PermissionJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PivotSettingsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("PlaceHolder") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("RoleId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("SortDirection") .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("SortIndex") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("SourceDbType") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("TotalSummaryJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("UserId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ValidationRuleJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("Visible") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("Width") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(100); b.HasKey("Id"); @@ -3574,58 +3282,55 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ListFormImport", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("BlobName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("ListFormCode") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Status") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("TotalRows") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); @@ -3637,68 +3342,65 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ListFormImportLog", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("BlobName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("ErrorRows") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ErrorsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("ExecRows") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ImportId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Progress") - .HasColumnType("double precision"); + .HasColumnType("float"); b.Property("Status") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ValidRows") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); @@ -3711,88 +3413,75 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("Approver") .IsRequired() .HasMaxLength(250) - .HasColumnType("character varying(250)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(250)"); b.Property("CompareColumn") .IsRequired() .HasMaxLength(100) - .HasColumnType("character varying(100)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(100)"); b.Property("CompareOperator") .IsRequired() .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("CompareOutcomesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("text"); b.Property("CompareValue") .HasPrecision(18, 2) - .HasColumnType("numeric(18,2)"); + .HasColumnType("decimal(18,2)"); b.Property("Kind") .IsRequired() .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("ListFormCode") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("NextOnApprove") .IsRequired() .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("NextOnFalse") .IsRequired() .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("NextOnReject") .IsRequired() .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("NextOnStart") .IsRequired() .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("NextOnTrue") .IsRequired() .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("PositionX") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("PositionY") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Title") .IsRequired() .HasMaxLength(250) - .HasColumnType("character varying(250)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(250)"); b.HasKey("Id"); @@ -3802,30 +3491,25 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.LogEntry", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Exception") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Level") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Message") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("MessageTemplate") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Properties") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("TimeStamp") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.HasKey("Id"); @@ -3835,79 +3519,66 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Menu", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CssClass") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CultureName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("DisplayName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ElementId") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Icon") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("IsDisabled") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Order") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ParentCode") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("RequiredPermissionName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("RoleId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ShortName") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Target") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Url") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("UserId") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -3920,14 +3591,12 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.MenuGroup", b => { b.Property("Id") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(450)"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -3940,75 +3609,69 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Note", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Content") .IsRequired() .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("EntityId") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("EntityName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("FilesJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Subject") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Type") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -4018,146 +3681,129 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Order", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Address1") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("Address2") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("City") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Commission") .HasPrecision(18, 2) - .HasColumnType("numeric(18,2)"); + .HasColumnType("decimal(18,2)"); b.Property("Country") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("District") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Email") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("FaxNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("Founder") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Installment") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MenuGroup") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("MobileNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("Name") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("OrganizationName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("PaymentDataJson") .HasMaxLength(4096) - .HasColumnType("character varying(4096)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("PaymentMethodId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("PhoneNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("PostalCode") .HasMaxLength(16) - .HasColumnType("character varying(16)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(16)"); b.Property("Subtotal") .HasPrecision(18, 2) - .HasColumnType("numeric(18,2)"); + .HasColumnType("decimal(18,2)"); b.Property("TaxOffice") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Total") .HasPrecision(18, 2) - .HasColumnType("numeric(18,2)"); + .HasColumnType("decimal(18,2)"); b.Property("VknTckn") .HasColumnType("bigint"); b.Property("Website") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -4167,62 +3813,60 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.OrderItem", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("BillingCycle") .IsRequired() .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("OrderId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ProductId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ProductName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Quantity") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("TotalPrice") .HasPrecision(18, 2) - .HasColumnType("numeric(18,2)"); + .HasColumnType("decimal(18,2)"); b.HasKey("Id"); @@ -4234,58 +3878,56 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.PaymentMethod", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Commission") .HasPrecision(5, 3) - .HasColumnType("numeric(5,3)"); + .HasColumnType("decimal(5,3)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Logo") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("Name") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_PaymentMethod", (string)null); }); @@ -4293,79 +3935,75 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Product", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Category") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("ImageUrl") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsQuantityBased") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MonthlyPrice") .HasPrecision(18, 2) - .HasColumnType("numeric(18,2)"); + .HasColumnType("decimal(18,2)"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Order") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("YearlyPrice") .HasPrecision(18, 2) - .HasColumnType("numeric(18,2)"); + .HasColumnType("decimal(18,2)"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_Product", (string)null); }); @@ -4373,63 +4011,60 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ReportCategory", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(4096) - .HasColumnType("character varying(4096)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Icon") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_ReportCategory", (string)null); }); @@ -4437,64 +4072,60 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.ReportTemplate", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CategoryId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("HtmlContent") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Status") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -4503,7 +4134,7 @@ namespace Sozsoft.Platform.Migrations b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_ReportTemplate", (string)null); }); @@ -4511,73 +4142,69 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Route", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Authority") - .HasColumnType("text"); + .HasColumnType("nvarchar(max)"); b.Property("ComponentPath") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("Key") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Path") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("RouteType") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); b.HasIndex("Key") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.HasIndex("Path") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_Route", (string)null); }); @@ -4585,53 +4212,52 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Sector", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_Sector", (string)null); }); @@ -4639,67 +4265,63 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Service", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("Features") - .HasColumnType("text"); + .HasColumnType("nvarchar(max)"); b.Property("Icon") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Title") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Type") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); b.HasIndex("Title") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_Service", (string)null); }); @@ -4708,56 +4330,53 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("SkillTypeId") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("SkillTypeId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_Skill", (string)null); }); @@ -4766,66 +4385,63 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDefault") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Progress") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0); b.Property("SkillTypeId") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("SkillTypeId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_SkillLevel", (string)null); }); @@ -4834,50 +4450,48 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_SkillType", (string)null); }); @@ -4885,53 +4499,52 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SocialComment", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Content") .IsRequired() .HasMaxLength(8192) - .HasColumnType("character varying(8192)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("SocialPostId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -4943,47 +4556,47 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SocialLike", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("SocialPostId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -4995,65 +4608,62 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SocialLocation", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Address") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Lat") - .HasColumnType("double precision"); + .HasColumnType("float"); b.Property("Lng") - .HasColumnType("double precision"); + .HasColumnType("float"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("PlaceId") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("SocialPostId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -5067,69 +4677,66 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SocialMedia", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("PollEndsAt") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("PollQuestion") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("PollTotalVotes") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("PollUserVoteId") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("SocialPostId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Type") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); - b.PrimitiveCollection("Urls") - .HasColumnType("text[]"); + b.PrimitiveCollection("Urls") + .HasColumnType("nvarchar(max)"); b.HasKey("Id"); @@ -5142,53 +4749,52 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SocialPollOption", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("SocialMediaId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Text") .IsRequired() .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("Votes") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); @@ -5200,65 +4806,64 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SocialPost", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Content") .IsRequired() .HasMaxLength(4096) - .HasColumnType("character varying(4096)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsLiked") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.Property("IsOwnPost") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LikeCount") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -5268,75 +4873,72 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Survey", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("Deadline") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("IsAnonymous") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Responses") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0); b.Property("Status") .IsRequired() .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Title") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); b.HasIndex("TenantId", "Title") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_Survey", (string)null); }); @@ -5344,59 +4946,57 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SurveyAnswer", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("QuestionId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("QuestionType") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ResponseId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Value") .IsRequired() .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.HasKey("Id"); @@ -5410,62 +5010,60 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SurveyQuestion", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsRequired") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Order") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("QuestionText") .IsRequired() .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("SurveyId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Type") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.HasKey("Id"); @@ -5477,53 +5075,52 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SurveyQuestionOption", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Order") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("QuestionId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Text") .IsRequired() .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.HasKey("Id"); @@ -5535,50 +5132,50 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.SurveyResponse", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("SubmissionTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("SurveyId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -5591,67 +5188,63 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Ratio") .HasPrecision(18, 6) - .HasColumnType("numeric(18,6)"); + .HasColumnType("decimal(18,6)"); b.Property("Rounding") .HasPrecision(18, 6) - .HasColumnType("numeric(18,6)"); + .HasColumnType("decimal(18,6)"); b.Property("Type") .IsRequired() .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("UomCategoryId") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -5659,7 +5252,7 @@ namespace Sozsoft.Platform.Migrations b.HasIndex("Name", "UomCategoryId") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_Uom", (string)null); }); @@ -5668,50 +5261,48 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_H_UomCategory", (string)null); }); @@ -5719,100 +5310,95 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.Videoroom", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ActualEndTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ActualStartTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("BranchId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("Duration") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaxParticipants") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ParticipantCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ScheduledEndTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ScheduledStartTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("SettingsJson") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Subject") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TeacherId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TeacherName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "BranchId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_Videoroom", (string)null); }); @@ -5820,65 +5406,64 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.VideoroomAttandance", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("BranchId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("JoinTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LeaveTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("SessionId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("StudentId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("StudentName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("TotalDurationMinutes") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); @@ -5890,81 +5475,77 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.VideoroomChat", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("BranchId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsTeacher") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Message") .IsRequired() .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("MessageType") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("RecipientId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("RecipientName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("SenderId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("SenderName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("SessionId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Timestamp") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.HasKey("Id"); @@ -5976,86 +5557,84 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.VideoroomParticipant", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("BranchId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ConnectionId") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("IsAudioMuted") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsHandRaised") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsKicked") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.Property("IsTeacher") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsVideoMuted") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("JoinTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("SessionId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("UserName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -6067,82 +5646,81 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Entities.WorkHour", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("EndTime") .HasMaxLength(8) - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("Friday") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Monday") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Saturday") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("StartTime") .HasMaxLength(8) - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("Sunday") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Thursday") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Tuesday") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Wednesday") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.HasKey("Id"); b.HasIndex("TenantId", "Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Adm_T_WorkHour", (string)null); }); @@ -6150,97 +5728,92 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Forum.ForumCategory", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("DisplayOrder") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Icon") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("IsActive") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsLocked") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LastPostDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("LastPostId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("LastPostUserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("LastPostUserName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("PostCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Slug") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TopicCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique() - .HasFilter("\"IsDeleted\" = FALSE"); + .HasFilter("[IsDeleted] = 0"); b.ToTable("Sas_T_ForumCategory", (string)null); }); @@ -6248,65 +5821,63 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Forum.ForumPost", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AuthorId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AuthorName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Content") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsAcceptedAnswer") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LikeCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ParentPostId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TopicId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -6320,94 +5891,90 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Sozsoft.Platform.Forum.ForumTopic", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AuthorId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AuthorName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CategoryId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Content") .IsRequired() - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsLocked") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsPinned") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsSolved") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LastPostDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("LastPostId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("LastPostUserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("LastPostUserName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("LikeCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ReplyCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("TenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Title") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ViewCount") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); @@ -6420,102 +5987,93 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DataType") .IsRequired() .HasMaxLength(16) - .HasColumnType("character varying(16)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(16)"); b.Property("DefaultValue") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DescriptionKey") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsEncrypted") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsInherited") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsVisibleToClients") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MainGroupKey") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("NameKey") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Order") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("Providers") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("RequiredPermissionName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("SelectOptions") - .HasColumnType("text"); + .HasColumnType("nvarchar(max)"); b.Property("SubGroupKey") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -6526,129 +6084,114 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ApplicationName") .HasMaxLength(96) - .HasColumnType("character varying(96)") - .HasColumnName("ApplicationName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(96)") + .HasColumnName("ApplicationName"); b.Property("BrowserInfo") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("BrowserInfo") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)") + .HasColumnName("BrowserInfo"); b.Property("ClientId") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("ClientId") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("ClientId"); b.Property("ClientIpAddress") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("ClientIpAddress") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("ClientIpAddress"); b.Property("ClientName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("ClientName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)") + .HasColumnName("ClientName"); b.Property("Comments") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("Comments") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("Comments"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CorrelationId") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("CorrelationId") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("CorrelationId"); b.Property("Exceptions") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("ExecutionDuration") - .HasColumnType("integer") + .HasColumnType("int") .HasColumnName("ExecutionDuration"); b.Property("ExecutionTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("HttpMethod") .HasMaxLength(16) - .HasColumnType("character varying(16)") - .HasColumnName("HttpMethod") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(16)") + .HasColumnName("HttpMethod"); b.Property("HttpStatusCode") - .HasColumnType("integer") + .HasColumnType("int") .HasColumnName("HttpStatusCode"); b.Property("ImpersonatorTenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("ImpersonatorTenantId"); b.Property("ImpersonatorTenantName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("ImpersonatorTenantName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("ImpersonatorTenantName"); b.Property("ImpersonatorUserId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("ImpersonatorUserId"); b.Property("ImpersonatorUserName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("ImpersonatorUserName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("ImpersonatorUserName"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("TenantName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("TenantName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("TenantName"); b.Property("Url") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("Url") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("Url"); b.Property("UserId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("UserId"); b.Property("UserName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("UserName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("UserName"); b.HasKey("Id"); @@ -6663,44 +6206,41 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AuditLogId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("AuditLogId"); b.Property("ExecutionDuration") - .HasColumnType("integer") + .HasColumnType("int") .HasColumnName("ExecutionDuration"); b.Property("ExecutionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("ExecutionTime"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("MethodName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("MethodName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)") + .HasColumnName("MethodName"); b.Property("Parameters") .HasMaxLength(2000) - .HasColumnType("character varying(2000)") - .HasColumnName("Parameters") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2000)") + .HasColumnName("Parameters"); b.Property("ServiceName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("ServiceName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("ServiceName"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -6716,24 +6256,23 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("FileName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("FileName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("FileName"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -6745,42 +6284,40 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AuditLogId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("AuditLogId"); b.Property("ChangeTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("ChangeTime"); b.Property("ChangeType") - .HasColumnType("smallint") + .HasColumnType("tinyint") .HasColumnName("ChangeType"); b.Property("EntityId") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("EntityId") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)") + .HasColumnName("EntityId"); b.Property("EntityTenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("EntityTypeFullName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("EntityTypeFullName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)") + .HasColumnName("EntityTypeFullName"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -6796,39 +6333,35 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("EntityChangeId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("NewValue") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("NewValue") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)") + .HasColumnName("NewValue"); b.Property("OriginalValue") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("OriginalValue") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)") + .HasColumnName("OriginalValue"); b.Property("PropertyName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("PropertyName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)") + .HasColumnName("PropertyName"); b.Property("PropertyTypeFullName") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("PropertyTypeFullName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("PropertyTypeFullName"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -6842,56 +6375,52 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ApplicationName") .HasMaxLength(96) - .HasColumnType("character varying(96)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(96)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsAbandoned") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.Property("JobArgs") .IsRequired() .HasMaxLength(1048576) - .HasColumnType("character varying(1048576)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("JobName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("LastTryTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("NextTryTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("Priority") .ValueGeneratedOnAdd() - .HasColumnType("smallint") + .HasColumnType("tinyint") .HasDefaultValue((byte)15); b.Property("TryCount") @@ -6910,60 +6439,52 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AllowedProviders") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("DefaultValue") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Description") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("DisplayName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("GroupName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsAvailableToHost") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsVisibleToClients") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ParentName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ValueType") .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.HasKey("Id"); @@ -6979,23 +6500,21 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("DisplayName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -7009,34 +6528,31 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ProviderKey") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ProviderName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Value") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); b.HasIndex("Name", "ProviderName", "ProviderKey") - .IsUnique(); + .IsUnique() + .HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); b.ToTable("AbpFeatureValues", (string)null); }); @@ -7044,54 +6560,49 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("Description") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsStatic") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Regex") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("RegexDescription") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Required") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("ValueType") - .HasColumnType("integer"); + .HasColumnType("int"); b.HasKey("Id"); @@ -7101,24 +6612,25 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("SourceTenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("SourceUserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TargetTenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TargetUserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique(); + .IsUnique() + .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); b.ToTable("AbpLinkUsers", (string)null); }); @@ -7126,54 +6638,51 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("EntityVersion") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDefault") - .HasColumnType("boolean") + .HasColumnType("bit") .HasColumnName("IsDefault"); b.Property("IsPublic") - .HasColumnType("boolean") + .HasColumnType("bit") .HasColumnName("IsPublic"); b.Property("IsStatic") - .HasColumnType("boolean") + .HasColumnType("bit") .HasColumnName("IsStatic"); b.Property("Name") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("NormalizedName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -7186,24 +6695,22 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ClaimType") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ClaimValue") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("RoleId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -7216,75 +6723,65 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Action") .HasMaxLength(96) - .HasColumnType("character varying(96)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(96)"); b.Property("ApplicationName") .HasMaxLength(96) - .HasColumnType("character varying(96)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(96)"); b.Property("BrowserInfo") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("ClientId") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ClientIpAddress") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CorrelationId") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Identity") .HasMaxLength(96) - .HasColumnType("character varying(96)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(96)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("TenantName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("UserName") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -7302,51 +6799,46 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentitySession", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ClientId") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Device") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("DeviceInfo") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IpAddresses") .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("LastAccessed") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("SessionId") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("SignedIn") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -7362,297 +6854,266 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AccessFailedCount") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0) .HasColumnName("AccessFailedCount"); b.Property("BirthDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("BirthPlace") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("BloodType") .HasMaxLength(16) - .HasColumnType("character varying(16)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(16)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DepartmentId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("District") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("EducationLevel") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Email") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("Email") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("Email"); b.Property("EmailConfirmed") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("EmailConfirmed"); b.Property("EntityVersion") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("FamilySequenceNo") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("FatherName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("GraduationSchool") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("HireDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("HomeAddress") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("IdentityNumber") .HasMaxLength(15) - .HasColumnType("character varying(15)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(15)"); b.Property("IsActive") - .HasColumnType("boolean") + .HasColumnType("bit") .HasColumnName("IsActive"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsExternal") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsExternal"); b.Property("IsVerified") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false); b.Property("IssuedDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("IssuedPlace") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("JobPositionId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LastPasswordChangeTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetimeoffset"); b.Property("LockoutEnabled") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("LockoutEnabled"); b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetimeoffset"); b.Property("LoginEndDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("MaritalStatus") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("MarriageDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("MotherName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Name") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("Name") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("Name"); b.Property("Nationality") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("NormalizedEmail") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("NormalizedEmail") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("NormalizedEmail"); b.Property("NormalizedUserName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("NormalizedUserName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("NormalizedUserName"); b.Property("PasswordHash") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("PasswordHash") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("PasswordHash"); b.Property("PhoneNumber") .HasMaxLength(16) - .HasColumnType("character varying(16)") - .HasColumnName("PhoneNumber") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(16)") + .HasColumnName("PhoneNumber"); b.Property("PhoneNumberConfirmed") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("PhoneNumberConfirmed"); b.Property("Province") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("RocketUsername") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("SecurityStamp") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("SecurityStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("SecurityStamp"); b.Property("SequenceNo") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("SerialNo") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("ShouldChangePasswordOnNextLogin") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("SskNo") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("Surname") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("Surname") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)") + .HasColumnName("Surname"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("TerminationDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("TwoFactorEnabled") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("TwoFactorEnabled"); b.Property("UserName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("UserName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)") + .HasColumnName("UserName"); b.Property("Village") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("VolumeNo") .HasMaxLength(32) - .HasColumnType("character varying(32)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(32)"); b.Property("WorkHour") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.HasKey("Id"); @@ -7670,25 +7131,23 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ClaimType") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ClaimValue") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.HasKey("Id"); @@ -7700,22 +7159,22 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityUserDelegation", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("EndTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("SourceUserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("StartTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("TargetUserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -7726,26 +7185,23 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => { b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("LoginProvider") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ProviderDisplayName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ProviderKey") .IsRequired() .HasMaxLength(196) - .HasColumnType("character varying(196)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(196)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("UserId", "LoginProvider"); @@ -7758,21 +7214,21 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => { b.Property("OrganizationUnitId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("OrganizationUnitId", "UserId"); @@ -7785,13 +7241,13 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => { b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("RoleId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("UserId", "RoleId"); @@ -7804,25 +7260,22 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => { b.Property("UserId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("LoginProvider") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Name") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Value") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.HasKey("UserId", "LoginProvider", "Name"); @@ -7832,73 +7285,70 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(95) - .HasColumnType("character varying(95)") - .HasColumnName("Code") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(95)") + .HasColumnName("Code"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DisplayName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("DisplayName") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)") + .HasColumnName("DisplayName"); b.Property("EntityVersion") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("ParentId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); @@ -7913,21 +7363,21 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => { b.Property("OrganizationUnitId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("RoleId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("OrganizationUnitId", "RoleId"); @@ -7941,122 +7391,104 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ApplicationType") .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("ClientId") .HasMaxLength(100) - .HasColumnType("character varying(100)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(100)"); b.Property("ClientSecret") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("ClientType") .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("ClientUri") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("ConsentType") .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DisplayName") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("DisplayNames") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("FrontChannelLogoutUri") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("JsonWebKeySet") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LogoUri") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Permissions") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("PostLogoutRedirectUris") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Properties") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("RedirectUris") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Requirements") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Settings") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.HasKey("Id"); @@ -8069,49 +7501,43 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ApplicationId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Properties") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Scopes") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Status") .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("Subject") .HasMaxLength(400) - .HasColumnType("character varying(400)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(400)"); b.Property("Type") .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.HasKey("Id"); @@ -8124,79 +7550,71 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Descriptions") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("DisplayName") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("DisplayNames") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .HasMaxLength(200) - .HasColumnType("character varying(200)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(200)"); b.Property("Properties") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Resources") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.HasKey("Id"); @@ -8209,63 +7627,56 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ApplicationId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("AuthorizationId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("CreationDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ExpirationDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Payload") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("Properties") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("RedemptionDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("datetime2"); b.Property("ReferenceId") .HasMaxLength(100) - .HasColumnType("character varying(100)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(100)"); b.Property("Status") .HasMaxLength(50) - .HasColumnType("character varying(50)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(50)"); b.Property("Subject") .HasMaxLength(400) - .HasColumnType("character varying(400)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(400)"); b.Property("Type") .HasMaxLength(150) - .HasColumnType("character varying(150)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(150)"); b.HasKey("Id"); @@ -8282,55 +7693,48 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("DisplayName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("GroupName") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("IsEnabled") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("MenuGroup") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("MultiTenancySide") - .HasColumnType("smallint"); + .HasColumnType("tinyint"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ParentName") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Providers") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("StateCheckers") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -8346,34 +7750,32 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ProviderKey") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ProviderName") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("TenantId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey") - .IsUnique(); + .IsUnique() + .HasFilter("[TenantId] IS NOT NULL"); b.ToTable("AbpPermissionGrants", (string)null); }); @@ -8382,23 +7784,21 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("DisplayName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.HasKey("Id"); @@ -8412,34 +7812,31 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ProviderKey") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("ProviderName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Value") .IsRequired() .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.HasKey("Id"); b.HasIndex("Name", "ProviderName", "ProviderKey") - .IsUnique(); + .IsUnique() + .HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); b.ToTable("AbpSettings", (string)null); }); @@ -8448,47 +7845,42 @@ namespace Sozsoft.Platform.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("DefaultValue") .HasMaxLength(2048) - .HasColumnType("character varying(2048)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(2048)"); b.Property("Description") .HasMaxLength(512) - .HasColumnType("character varying(512)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(512)"); b.Property("DisplayName") .IsRequired() .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("ExtraProperties") - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsEncrypted") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsInherited") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("IsVisibleToClients") - .HasColumnType("boolean"); + .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Providers") .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.HasKey("Id"); @@ -8501,157 +7893,138 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => { b.Property("Id") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Address1") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("Address2") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("City") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .IsRequired() .HasMaxLength(40) - .HasColumnType("character varying(40)") - .HasColumnName("ConcurrencyStamp") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); b.Property("Country") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("District") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("Email") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.Property("EntityVersion") - .HasColumnType("integer"); + .HasColumnType("int"); b.Property("ExtraProperties") .IsRequired() - .HasColumnType("text") + .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("FaxNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("Founder") - .HasColumnType("text") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(max)"); b.Property("IsActive") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(true); b.Property("IsDeleted") .ValueGeneratedOnAdd() - .HasColumnType("boolean") + .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") - .HasColumnType("uuid") + .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaxConcurrentUsers") .ValueGeneratedOnAdd() - .HasColumnType("integer") + .HasColumnType("int") .HasDefaultValue(0); b.Property("MenuGroup") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("MobileNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("Name") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("NormalizedName") .IsRequired() .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("OrganizationName") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("PhoneNumber") .HasMaxLength(20) - .HasColumnType("character varying(20)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(20)"); b.Property("PostalCode") .HasMaxLength(10) - .HasColumnType("character varying(10)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(10)"); b.Property("TaxOffice") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Township") .HasMaxLength(128) - .HasColumnType("character varying(128)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(128)"); b.Property("VknTckn") .HasColumnType("bigint"); b.Property("Website") .HasMaxLength(256) - .HasColumnType("character varying(256)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(256)"); b.HasKey("Id"); @@ -8665,18 +8038,16 @@ namespace Sozsoft.Platform.Migrations modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => { b.Property("TenantId") - .HasColumnType("uuid"); + .HasColumnType("uniqueidentifier"); b.Property("Name") .HasMaxLength(64) - .HasColumnType("character varying(64)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(64)"); b.Property("Value") .IsRequired() .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .UseCollation("tr-x-icu"); + .HasColumnType("nvarchar(1024)"); b.HasKey("TenantId", "Name"); diff --git a/ui/src/views/admin/files/FileManager.tsx b/ui/src/views/admin/files/FileManager.tsx index 289467f..a0dd05e 100644 --- a/ui/src/views/admin/files/FileManager.tsx +++ b/ui/src/views/admin/files/FileManager.tsx @@ -735,7 +735,7 @@ const FileManager = () => { > {/* Enhanced Unified Toolbar */} -
+
{/* Main Toolbar Row */}
{/* Left Section - Primary Actions */}