Browse Source

Change database provider to PostgreSQL for Identity Service

pull/28/head
enisn 5 years ago
parent
commit
708948fdad
  1. 2
      services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/EShopOnAbp.IdentityService.EntityFrameworkCore.csproj
  2. 2
      services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/EntityFrameworkCore/IdentityServiceDbContextFactory.cs
  3. 6
      services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/EntityFrameworkCore/IdentityServiceEntityFrameworkCoreModule.cs
  4. 583
      services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211125125938_Initial.Designer.cs
  5. 605
      services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211125125938_Initial.cs
  6. 581
      services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/IdentityServiceDbContextModelSnapshot.cs
  7. 5
      services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/appsettings.json

2
services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/EShopOnAbp.IdentityService.EntityFrameworkCore.csproj

@ -16,7 +16,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Volo.Abp.EntityFrameworkCore.SqlServer" Version="5.0.0-rc.1" /> <PackageReference Include="Volo.Abp.EntityFrameworkCore.PostgreSql" Version="5.0.0-rc.1" />
<PackageReference Include="Volo.Abp.Identity.EntityFrameworkCore" Version="5.0.0-rc.1" /> <PackageReference Include="Volo.Abp.Identity.EntityFrameworkCore" Version="5.0.0-rc.1" />
<PackageReference Include="Volo.Abp.IdentityServer.EntityFrameworkCore" Version="5.0.0-rc.1" /> <PackageReference Include="Volo.Abp.IdentityServer.EntityFrameworkCore" Version="5.0.0-rc.1" />
</ItemGroup> </ItemGroup>

2
services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/EntityFrameworkCore/IdentityServiceDbContextFactory.cs

@ -15,7 +15,7 @@ namespace EShopOnAbp.IdentityService.EntityFrameworkCore
IdentityServiceEfCoreEntityExtensionMappings.Configure(); IdentityServiceEfCoreEntityExtensionMappings.Configure();
var builder = new DbContextOptionsBuilder<IdentityServiceDbContext>() var builder = new DbContextOptionsBuilder<IdentityServiceDbContext>()
.UseSqlServer(GetConnectionStringFromConfiguration(), b => .UseNpgsql(GetConnectionStringFromConfiguration(), b =>
{ {
b.MigrationsHistoryTable("__IdentityService_Migrations"); b.MigrationsHistoryTable("__IdentityService_Migrations");
}); });

6
services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/EntityFrameworkCore/IdentityServiceEntityFrameworkCoreModule.cs

@ -1,6 +1,6 @@
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore.SqlServer; using Volo.Abp.EntityFrameworkCore.PostgreSql;
using Volo.Abp.Identity.EntityFrameworkCore; using Volo.Abp.Identity.EntityFrameworkCore;
using Volo.Abp.IdentityServer.EntityFrameworkCore; using Volo.Abp.IdentityServer.EntityFrameworkCore;
using Volo.Abp.Modularity; using Volo.Abp.Modularity;
@ -9,7 +9,7 @@ namespace EShopOnAbp.IdentityService.EntityFrameworkCore
{ {
[DependsOn( [DependsOn(
typeof(IdentityServiceDomainModule), typeof(IdentityServiceDomainModule),
typeof(AbpEntityFrameworkCoreSqlServerModule), typeof(AbpEntityFrameworkCorePostgreSqlModule),
typeof(AbpIdentityEntityFrameworkCoreModule), typeof(AbpIdentityEntityFrameworkCoreModule),
typeof(AbpIdentityServerEntityFrameworkCoreModule) typeof(AbpIdentityServerEntityFrameworkCoreModule)
)] )]
@ -34,7 +34,7 @@ namespace EShopOnAbp.IdentityService.EntityFrameworkCore
{ {
options.Configure<IdentityServiceDbContext>(c => options.Configure<IdentityServiceDbContext>(c =>
{ {
c.UseSqlServer(b => { b.MigrationsHistoryTable("__IdentityService_Migrations"); }); c.UseNpgsql(b => { b.MigrationsHistoryTable("__IdentityService_Migrations"); });
}); });
}); });
} }

583
services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211006102143_Initial.Designer.cs → services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211125125938_Initial.Designer.cs

File diff suppressed because it is too large

605
services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211006102143_Initial.cs → services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211125125938_Initial.cs

@ -13,16 +13,16 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "AbpClaimTypes", name: "AbpClaimTypes",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), Name = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false),
Required = table.Column<bool>(type: "bit", nullable: false), Required = table.Column<bool>(type: "boolean", nullable: false),
IsStatic = table.Column<bool>(type: "bit", nullable: false), IsStatic = table.Column<bool>(type: "boolean", nullable: false),
Regex = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true), Regex = table.Column<string>(type: "character varying(512)", maxLength: 512, nullable: true),
RegexDescription = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true), RegexDescription = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: true),
Description = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), Description = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: true),
ValueType = table.Column<int>(type: "int", nullable: false), ValueType = table.Column<int>(type: "integer", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -33,11 +33,11 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "AbpLinkUsers", name: "AbpLinkUsers",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
SourceUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), SourceUserId = table.Column<Guid>(type: "uuid", nullable: false),
SourceTenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), SourceTenantId = table.Column<Guid>(type: "uuid", nullable: true),
TargetUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), TargetUserId = table.Column<Guid>(type: "uuid", nullable: false),
TargetTenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) TargetTenantId = table.Column<Guid>(type: "uuid", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -48,20 +48,20 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "AbpOrganizationUnits", name: "AbpOrganizationUnits",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
ParentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), ParentId = table.Column<Guid>(type: "uuid", nullable: true),
Code = table.Column<string>(type: "nvarchar(95)", maxLength: 95, nullable: false), Code = table.Column<string>(type: "character varying(95)", maxLength: 95, nullable: false),
DisplayName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), DisplayName = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), CreatorId = table.Column<Guid>(type: "uuid", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), LastModificationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), LastModifierId = table.Column<Guid>(type: "uuid", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), IsDeleted = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), DeleterId = table.Column<Guid>(type: "uuid", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) DeletionTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -77,15 +77,15 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "AbpRoles", name: "AbpRoles",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
Name = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), Name = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false),
NormalizedName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), NormalizedName = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false),
IsDefault = table.Column<bool>(type: "bit", nullable: false), IsDefault = table.Column<bool>(type: "boolean", nullable: false),
IsStatic = table.Column<bool>(type: "bit", nullable: false), IsStatic = table.Column<bool>(type: "boolean", nullable: false),
IsPublic = table.Column<bool>(type: "bit", nullable: false), IsPublic = table.Column<bool>(type: "boolean", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -96,21 +96,21 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "AbpSecurityLogs", name: "AbpSecurityLogs",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
ApplicationName = table.Column<string>(type: "nvarchar(96)", maxLength: 96, nullable: true), ApplicationName = table.Column<string>(type: "character varying(96)", maxLength: 96, nullable: true),
Identity = table.Column<string>(type: "nvarchar(96)", maxLength: 96, nullable: true), Identity = table.Column<string>(type: "character varying(96)", maxLength: 96, nullable: true),
Action = table.Column<string>(type: "nvarchar(96)", maxLength: 96, nullable: true), Action = table.Column<string>(type: "character varying(96)", maxLength: 96, nullable: true),
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), UserId = table.Column<Guid>(type: "uuid", nullable: true),
UserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), UserName = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: true),
TenantName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), TenantName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
ClientId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), ClientId = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
CorrelationId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), CorrelationId = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
ClientIpAddress = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), ClientIpAddress = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
BrowserInfo = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true), BrowserInfo = table.Column<string>(type: "character varying(512)", maxLength: 512, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -121,34 +121,34 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "AbpUsers", name: "AbpUsers",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
UserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), UserName = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false),
NormalizedUserName = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), NormalizedUserName = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false),
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), Name = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
Surname = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), Surname = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
Email = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), Email = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false),
NormalizedEmail = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), NormalizedEmail = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false),
EmailConfirmed = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), EmailConfirmed = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
PasswordHash = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), PasswordHash = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: true),
SecurityStamp = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), SecurityStamp = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false),
IsExternal = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), IsExternal = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
PhoneNumber = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true), PhoneNumber = table.Column<string>(type: "character varying(16)", maxLength: 16, nullable: true),
PhoneNumberConfirmed = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), PhoneNumberConfirmed = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
IsActive = table.Column<bool>(type: "bit", nullable: false), IsActive = table.Column<bool>(type: "boolean", nullable: false),
TwoFactorEnabled = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), TwoFactorEnabled = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
LockoutEnd = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true), LockoutEnd = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true),
LockoutEnabled = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), LockoutEnabled = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
AccessFailedCount = table.Column<int>(type: "int", nullable: false, defaultValue: 0), AccessFailedCount = table.Column<int>(type: "integer", nullable: false, defaultValue: 0),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), CreatorId = table.Column<Guid>(type: "uuid", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), LastModificationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), LastModifierId = table.Column<Guid>(type: "uuid", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), IsDeleted = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), DeleterId = table.Column<Guid>(type: "uuid", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) DeletionTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -159,22 +159,22 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerApiResources", name: "IdentityServerApiResources",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false), Name = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
DisplayName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), DisplayName = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true),
Description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true), Description = table.Column<string>(type: "character varying(1000)", maxLength: 1000, nullable: true),
Enabled = table.Column<bool>(type: "bit", nullable: false), Enabled = table.Column<bool>(type: "boolean", nullable: false),
AllowedAccessTokenSigningAlgorithms = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true), AllowedAccessTokenSigningAlgorithms = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true),
ShowInDiscoveryDocument = table.Column<bool>(type: "bit", nullable: false), ShowInDiscoveryDocument = table.Column<bool>(type: "boolean", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), CreatorId = table.Column<Guid>(type: "uuid", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), LastModificationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), LastModifierId = table.Column<Guid>(type: "uuid", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), IsDeleted = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), DeleterId = table.Column<Guid>(type: "uuid", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) DeletionTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -185,23 +185,23 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerApiScopes", name: "IdentityServerApiScopes",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
Enabled = table.Column<bool>(type: "bit", nullable: false), Enabled = table.Column<bool>(type: "boolean", nullable: false),
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false), Name = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
DisplayName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), DisplayName = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true),
Description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true), Description = table.Column<string>(type: "character varying(1000)", maxLength: 1000, nullable: true),
Required = table.Column<bool>(type: "bit", nullable: false), Required = table.Column<bool>(type: "boolean", nullable: false),
Emphasize = table.Column<bool>(type: "bit", nullable: false), Emphasize = table.Column<bool>(type: "boolean", nullable: false),
ShowInDiscoveryDocument = table.Column<bool>(type: "bit", nullable: false), ShowInDiscoveryDocument = table.Column<bool>(type: "boolean", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), CreatorId = table.Column<Guid>(type: "uuid", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), LastModificationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), LastModifierId = table.Column<Guid>(type: "uuid", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), IsDeleted = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), DeleterId = table.Column<Guid>(type: "uuid", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) DeletionTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -212,55 +212,55 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerClients", name: "IdentityServerClients",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
ClientId = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false), ClientId = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
ClientName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), ClientName = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true),
Description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true), Description = table.Column<string>(type: "character varying(1000)", maxLength: 1000, nullable: true),
ClientUri = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true), ClientUri = table.Column<string>(type: "character varying(2000)", maxLength: 2000, nullable: true),
LogoUri = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true), LogoUri = table.Column<string>(type: "character varying(2000)", maxLength: 2000, nullable: true),
Enabled = table.Column<bool>(type: "bit", nullable: false), Enabled = table.Column<bool>(type: "boolean", nullable: false),
ProtocolType = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false), ProtocolType = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
RequireClientSecret = table.Column<bool>(type: "bit", nullable: false), RequireClientSecret = table.Column<bool>(type: "boolean", nullable: false),
RequireConsent = table.Column<bool>(type: "bit", nullable: false), RequireConsent = table.Column<bool>(type: "boolean", nullable: false),
AllowRememberConsent = table.Column<bool>(type: "bit", nullable: false), AllowRememberConsent = table.Column<bool>(type: "boolean", nullable: false),
AlwaysIncludeUserClaimsInIdToken = table.Column<bool>(type: "bit", nullable: false), AlwaysIncludeUserClaimsInIdToken = table.Column<bool>(type: "boolean", nullable: false),
RequirePkce = table.Column<bool>(type: "bit", nullable: false), RequirePkce = table.Column<bool>(type: "boolean", nullable: false),
AllowPlainTextPkce = table.Column<bool>(type: "bit", nullable: false), AllowPlainTextPkce = table.Column<bool>(type: "boolean", nullable: false),
RequireRequestObject = table.Column<bool>(type: "bit", nullable: false), RequireRequestObject = table.Column<bool>(type: "boolean", nullable: false),
AllowAccessTokensViaBrowser = table.Column<bool>(type: "bit", nullable: false), AllowAccessTokensViaBrowser = table.Column<bool>(type: "boolean", nullable: false),
FrontChannelLogoutUri = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true), FrontChannelLogoutUri = table.Column<string>(type: "character varying(2000)", maxLength: 2000, nullable: true),
FrontChannelLogoutSessionRequired = table.Column<bool>(type: "bit", nullable: false), FrontChannelLogoutSessionRequired = table.Column<bool>(type: "boolean", nullable: false),
BackChannelLogoutUri = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true), BackChannelLogoutUri = table.Column<string>(type: "character varying(2000)", maxLength: 2000, nullable: true),
BackChannelLogoutSessionRequired = table.Column<bool>(type: "bit", nullable: false), BackChannelLogoutSessionRequired = table.Column<bool>(type: "boolean", nullable: false),
AllowOfflineAccess = table.Column<bool>(type: "bit", nullable: false), AllowOfflineAccess = table.Column<bool>(type: "boolean", nullable: false),
IdentityTokenLifetime = table.Column<int>(type: "int", nullable: false), IdentityTokenLifetime = table.Column<int>(type: "integer", nullable: false),
AllowedIdentityTokenSigningAlgorithms = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true), AllowedIdentityTokenSigningAlgorithms = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true),
AccessTokenLifetime = table.Column<int>(type: "int", nullable: false), AccessTokenLifetime = table.Column<int>(type: "integer", nullable: false),
AuthorizationCodeLifetime = table.Column<int>(type: "int", nullable: false), AuthorizationCodeLifetime = table.Column<int>(type: "integer", nullable: false),
ConsentLifetime = table.Column<int>(type: "int", nullable: true), ConsentLifetime = table.Column<int>(type: "integer", nullable: true),
AbsoluteRefreshTokenLifetime = table.Column<int>(type: "int", nullable: false), AbsoluteRefreshTokenLifetime = table.Column<int>(type: "integer", nullable: false),
SlidingRefreshTokenLifetime = table.Column<int>(type: "int", nullable: false), SlidingRefreshTokenLifetime = table.Column<int>(type: "integer", nullable: false),
RefreshTokenUsage = table.Column<int>(type: "int", nullable: false), RefreshTokenUsage = table.Column<int>(type: "integer", nullable: false),
UpdateAccessTokenClaimsOnRefresh = table.Column<bool>(type: "bit", nullable: false), UpdateAccessTokenClaimsOnRefresh = table.Column<bool>(type: "boolean", nullable: false),
RefreshTokenExpiration = table.Column<int>(type: "int", nullable: false), RefreshTokenExpiration = table.Column<int>(type: "integer", nullable: false),
AccessTokenType = table.Column<int>(type: "int", nullable: false), AccessTokenType = table.Column<int>(type: "integer", nullable: false),
EnableLocalLogin = table.Column<bool>(type: "bit", nullable: false), EnableLocalLogin = table.Column<bool>(type: "boolean", nullable: false),
IncludeJwtId = table.Column<bool>(type: "bit", nullable: false), IncludeJwtId = table.Column<bool>(type: "boolean", nullable: false),
AlwaysSendClientClaims = table.Column<bool>(type: "bit", nullable: false), AlwaysSendClientClaims = table.Column<bool>(type: "boolean", nullable: false),
ClientClaimsPrefix = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), ClientClaimsPrefix = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true),
PairWiseSubjectSalt = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), PairWiseSubjectSalt = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true),
UserSsoLifetime = table.Column<int>(type: "int", nullable: true), UserSsoLifetime = table.Column<int>(type: "integer", nullable: true),
UserCodeType = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true), UserCodeType = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true),
DeviceCodeLifetime = table.Column<int>(type: "int", nullable: false), DeviceCodeLifetime = table.Column<int>(type: "integer", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), CreatorId = table.Column<Guid>(type: "uuid", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), LastModificationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), LastModifierId = table.Column<Guid>(type: "uuid", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), IsDeleted = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), DeleterId = table.Column<Guid>(type: "uuid", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) DeletionTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -271,19 +271,19 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerDeviceFlowCodes", name: "IdentityServerDeviceFlowCodes",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
DeviceCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false), DeviceCode = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
UserCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false), UserCode = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
SubjectId = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), SubjectId = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true),
SessionId = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true), SessionId = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true),
ClientId = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false), ClientId = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
Description = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), Description = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true),
Expiration = table.Column<DateTime>(type: "datetime2", nullable: false), Expiration = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
Data = table.Column<string>(type: "nvarchar(max)", maxLength: 50000, nullable: false), Data = table.Column<string>(type: "character varying(50000)", maxLength: 50000, nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) CreatorId = table.Column<Guid>(type: "uuid", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -294,23 +294,23 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerIdentityResources", name: "IdentityServerIdentityResources",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false), Name = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
DisplayName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), DisplayName = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true),
Description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true), Description = table.Column<string>(type: "character varying(1000)", maxLength: 1000, nullable: true),
Enabled = table.Column<bool>(type: "bit", nullable: false), Enabled = table.Column<bool>(type: "boolean", nullable: false),
Required = table.Column<bool>(type: "bit", nullable: false), Required = table.Column<bool>(type: "boolean", nullable: false),
Emphasize = table.Column<bool>(type: "bit", nullable: false), Emphasize = table.Column<bool>(type: "boolean", nullable: false),
ShowInDiscoveryDocument = table.Column<bool>(type: "bit", nullable: false), ShowInDiscoveryDocument = table.Column<bool>(type: "boolean", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), CreatorId = table.Column<Guid>(type: "uuid", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), LastModificationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), LastModifierId = table.Column<Guid>(type: "uuid", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), IsDeleted = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), DeleterId = table.Column<Guid>(type: "uuid", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) DeletionTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -321,19 +321,19 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerPersistedGrants", name: "IdentityServerPersistedGrants",
columns: table => new columns: table => new
{ {
Key = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false), Key = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
Type = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), Type = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false),
SubjectId = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), SubjectId = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true),
SessionId = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true), SessionId = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true),
ClientId = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false), ClientId = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
Description = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), Description = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
Expiration = table.Column<DateTime>(type: "datetime2", nullable: true), Expiration = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
ConsumedTime = table.Column<DateTime>(type: "datetime2", nullable: true), ConsumedTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
Data = table.Column<string>(type: "nvarchar(max)", maxLength: 50000, nullable: false), Data = table.Column<string>(type: "character varying(50000)", maxLength: 50000, nullable: false),
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -344,17 +344,17 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "AbpOrganizationUnitRoles", name: "AbpOrganizationUnitRoles",
columns: table => new columns: table => new
{ {
RoleId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), RoleId = table.Column<Guid>(type: "uuid", nullable: false),
OrganizationUnitId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), OrganizationUnitId = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) CreatorId = table.Column<Guid>(type: "uuid", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => new { x.OrganizationUnitId, x.RoleId }); table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => new { x.OrganizationUnitId, x.RoleId });
table.ForeignKey( table.ForeignKey(
name: "FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationUnitId", name: "FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationU~",
column: x => x.OrganizationUnitId, column: x => x.OrganizationUnitId,
principalTable: "AbpOrganizationUnits", principalTable: "AbpOrganizationUnits",
principalColumn: "Id", principalColumn: "Id",
@ -371,11 +371,11 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "AbpRoleClaims", name: "AbpRoleClaims",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
RoleId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), RoleId = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
ClaimType = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), ClaimType = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false),
ClaimValue = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true) ClaimValue = table.Column<string>(type: "character varying(1024)", maxLength: 1024, nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -392,11 +392,11 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "AbpUserClaims", name: "AbpUserClaims",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<Guid>(type: "uuid", nullable: false),
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), UserId = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
ClaimType = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false), ClaimType = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false),
ClaimValue = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true) ClaimValue = table.Column<string>(type: "character varying(1024)", maxLength: 1024, nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -413,11 +413,11 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "AbpUserLogins", name: "AbpUserLogins",
columns: table => new columns: table => new
{ {
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), UserId = table.Column<Guid>(type: "uuid", nullable: false),
LoginProvider = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), LoginProvider = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
ProviderKey = table.Column<string>(type: "nvarchar(196)", maxLength: 196, nullable: false), ProviderKey = table.Column<string>(type: "character varying(196)", maxLength: 196, nullable: false),
ProviderDisplayName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true) ProviderDisplayName = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -434,17 +434,17 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "AbpUserOrganizationUnits", name: "AbpUserOrganizationUnits",
columns: table => new columns: table => new
{ {
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), UserId = table.Column<Guid>(type: "uuid", nullable: false),
OrganizationUnitId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), OrganizationUnitId = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) CreatorId = table.Column<Guid>(type: "uuid", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_AbpUserOrganizationUnits", x => new { x.OrganizationUnitId, x.UserId }); table.PrimaryKey("PK_AbpUserOrganizationUnits", x => new { x.OrganizationUnitId, x.UserId });
table.ForeignKey( table.ForeignKey(
name: "FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationUnitId", name: "FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationU~",
column: x => x.OrganizationUnitId, column: x => x.OrganizationUnitId,
principalTable: "AbpOrganizationUnits", principalTable: "AbpOrganizationUnits",
principalColumn: "Id", principalColumn: "Id",
@ -461,9 +461,9 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "AbpUserRoles", name: "AbpUserRoles",
columns: table => new columns: table => new
{ {
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), UserId = table.Column<Guid>(type: "uuid", nullable: false),
RoleId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), RoleId = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) TenantId = table.Column<Guid>(type: "uuid", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -486,11 +486,11 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "AbpUserTokens", name: "AbpUserTokens",
columns: table => new columns: table => new
{ {
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), UserId = table.Column<Guid>(type: "uuid", nullable: false),
LoginProvider = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), LoginProvider = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), Name = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uuid", nullable: true),
Value = table.Column<string>(type: "nvarchar(max)", nullable: true) Value = table.Column<string>(type: "text", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -507,14 +507,14 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerApiResourceClaims", name: "IdentityServerApiResourceClaims",
columns: table => new columns: table => new
{ {
Type = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false), Type = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
ApiResourceId = table.Column<Guid>(type: "uniqueidentifier", nullable: false) ApiResourceId = table.Column<Guid>(type: "uuid", nullable: false)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_IdentityServerApiResourceClaims", x => new { x.ApiResourceId, x.Type }); table.PrimaryKey("PK_IdentityServerApiResourceClaims", x => new { x.ApiResourceId, x.Type });
table.ForeignKey( table.ForeignKey(
name: "FK_IdentityServerApiResourceClaims_IdentityServerApiResources_ApiResourceId", name: "FK_IdentityServerApiResourceClaims_IdentityServerApiResources_~",
column: x => x.ApiResourceId, column: x => x.ApiResourceId,
principalTable: "IdentityServerApiResources", principalTable: "IdentityServerApiResources",
principalColumn: "Id", principalColumn: "Id",
@ -525,15 +525,15 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerApiResourceProperties", name: "IdentityServerApiResourceProperties",
columns: table => new columns: table => new
{ {
ApiResourceId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), ApiResourceId = table.Column<Guid>(type: "uuid", nullable: false),
Key = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: false), Key = table.Column<string>(type: "character varying(250)", maxLength: 250, nullable: false),
Value = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: false) Value = table.Column<string>(type: "character varying(2000)", maxLength: 2000, nullable: false)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_IdentityServerApiResourceProperties", x => new { x.ApiResourceId, x.Key, x.Value }); table.PrimaryKey("PK_IdentityServerApiResourceProperties", x => new { x.ApiResourceId, x.Key, x.Value });
table.ForeignKey( table.ForeignKey(
name: "FK_IdentityServerApiResourceProperties_IdentityServerApiResources_ApiResourceId", name: "FK_IdentityServerApiResourceProperties_IdentityServerApiResour~",
column: x => x.ApiResourceId, column: x => x.ApiResourceId,
principalTable: "IdentityServerApiResources", principalTable: "IdentityServerApiResources",
principalColumn: "Id", principalColumn: "Id",
@ -544,14 +544,14 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerApiResourceScopes", name: "IdentityServerApiResourceScopes",
columns: table => new columns: table => new
{ {
ApiResourceId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), ApiResourceId = table.Column<Guid>(type: "uuid", nullable: false),
Scope = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false) Scope = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_IdentityServerApiResourceScopes", x => new { x.ApiResourceId, x.Scope }); table.PrimaryKey("PK_IdentityServerApiResourceScopes", x => new { x.ApiResourceId, x.Scope });
table.ForeignKey( table.ForeignKey(
name: "FK_IdentityServerApiResourceScopes_IdentityServerApiResources_ApiResourceId", name: "FK_IdentityServerApiResourceScopes_IdentityServerApiResources_~",
column: x => x.ApiResourceId, column: x => x.ApiResourceId,
principalTable: "IdentityServerApiResources", principalTable: "IdentityServerApiResources",
principalColumn: "Id", principalColumn: "Id",
@ -562,17 +562,17 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerApiResourceSecrets", name: "IdentityServerApiResourceSecrets",
columns: table => new columns: table => new
{ {
Type = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: false), Type = table.Column<string>(type: "character varying(250)", maxLength: 250, nullable: false),
Value = table.Column<string>(type: "nvarchar(4000)", maxLength: 4000, nullable: false), Value = table.Column<string>(type: "character varying(4000)", maxLength: 4000, nullable: false),
ApiResourceId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), ApiResourceId = table.Column<Guid>(type: "uuid", nullable: false),
Description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true), Description = table.Column<string>(type: "character varying(1000)", maxLength: 1000, nullable: true),
Expiration = table.Column<DateTime>(type: "datetime2", nullable: true) Expiration = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_IdentityServerApiResourceSecrets", x => new { x.ApiResourceId, x.Type, x.Value }); table.PrimaryKey("PK_IdentityServerApiResourceSecrets", x => new { x.ApiResourceId, x.Type, x.Value });
table.ForeignKey( table.ForeignKey(
name: "FK_IdentityServerApiResourceSecrets_IdentityServerApiResources_ApiResourceId", name: "FK_IdentityServerApiResourceSecrets_IdentityServerApiResources~",
column: x => x.ApiResourceId, column: x => x.ApiResourceId,
principalTable: "IdentityServerApiResources", principalTable: "IdentityServerApiResources",
principalColumn: "Id", principalColumn: "Id",
@ -583,14 +583,14 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerApiScopeClaims", name: "IdentityServerApiScopeClaims",
columns: table => new columns: table => new
{ {
Type = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false), Type = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
ApiScopeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false) ApiScopeId = table.Column<Guid>(type: "uuid", nullable: false)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_IdentityServerApiScopeClaims", x => new { x.ApiScopeId, x.Type }); table.PrimaryKey("PK_IdentityServerApiScopeClaims", x => new { x.ApiScopeId, x.Type });
table.ForeignKey( table.ForeignKey(
name: "FK_IdentityServerApiScopeClaims_IdentityServerApiScopes_ApiScopeId", name: "FK_IdentityServerApiScopeClaims_IdentityServerApiScopes_ApiSco~",
column: x => x.ApiScopeId, column: x => x.ApiScopeId,
principalTable: "IdentityServerApiScopes", principalTable: "IdentityServerApiScopes",
principalColumn: "Id", principalColumn: "Id",
@ -601,15 +601,15 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerApiScopeProperties", name: "IdentityServerApiScopeProperties",
columns: table => new columns: table => new
{ {
ApiScopeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), ApiScopeId = table.Column<Guid>(type: "uuid", nullable: false),
Key = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: false), Key = table.Column<string>(type: "character varying(250)", maxLength: 250, nullable: false),
Value = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: false) Value = table.Column<string>(type: "character varying(2000)", maxLength: 2000, nullable: false)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_IdentityServerApiScopeProperties", x => new { x.ApiScopeId, x.Key, x.Value }); table.PrimaryKey("PK_IdentityServerApiScopeProperties", x => new { x.ApiScopeId, x.Key, x.Value });
table.ForeignKey( table.ForeignKey(
name: "FK_IdentityServerApiScopeProperties_IdentityServerApiScopes_ApiScopeId", name: "FK_IdentityServerApiScopeProperties_IdentityServerApiScopes_Ap~",
column: x => x.ApiScopeId, column: x => x.ApiScopeId,
principalTable: "IdentityServerApiScopes", principalTable: "IdentityServerApiScopes",
principalColumn: "Id", principalColumn: "Id",
@ -620,9 +620,9 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerClientClaims", name: "IdentityServerClientClaims",
columns: table => new columns: table => new
{ {
ClientId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), ClientId = table.Column<Guid>(type: "uuid", nullable: false),
Type = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: false), Type = table.Column<string>(type: "character varying(250)", maxLength: 250, nullable: false),
Value = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: false) Value = table.Column<string>(type: "character varying(250)", maxLength: 250, nullable: false)
}, },
constraints: table => constraints: table =>
{ {
@ -639,14 +639,14 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerClientCorsOrigins", name: "IdentityServerClientCorsOrigins",
columns: table => new columns: table => new
{ {
ClientId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), ClientId = table.Column<Guid>(type: "uuid", nullable: false),
Origin = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: false) Origin = table.Column<string>(type: "character varying(150)", maxLength: 150, nullable: false)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_IdentityServerClientCorsOrigins", x => new { x.ClientId, x.Origin }); table.PrimaryKey("PK_IdentityServerClientCorsOrigins", x => new { x.ClientId, x.Origin });
table.ForeignKey( table.ForeignKey(
name: "FK_IdentityServerClientCorsOrigins_IdentityServerClients_ClientId", name: "FK_IdentityServerClientCorsOrigins_IdentityServerClients_Clien~",
column: x => x.ClientId, column: x => x.ClientId,
principalTable: "IdentityServerClients", principalTable: "IdentityServerClients",
principalColumn: "Id", principalColumn: "Id",
@ -657,14 +657,14 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerClientGrantTypes", name: "IdentityServerClientGrantTypes",
columns: table => new columns: table => new
{ {
ClientId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), ClientId = table.Column<Guid>(type: "uuid", nullable: false),
GrantType = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: false) GrantType = table.Column<string>(type: "character varying(250)", maxLength: 250, nullable: false)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_IdentityServerClientGrantTypes", x => new { x.ClientId, x.GrantType }); table.PrimaryKey("PK_IdentityServerClientGrantTypes", x => new { x.ClientId, x.GrantType });
table.ForeignKey( table.ForeignKey(
name: "FK_IdentityServerClientGrantTypes_IdentityServerClients_ClientId", name: "FK_IdentityServerClientGrantTypes_IdentityServerClients_Client~",
column: x => x.ClientId, column: x => x.ClientId,
principalTable: "IdentityServerClients", principalTable: "IdentityServerClients",
principalColumn: "Id", principalColumn: "Id",
@ -675,14 +675,14 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerClientIdPRestrictions", name: "IdentityServerClientIdPRestrictions",
columns: table => new columns: table => new
{ {
ClientId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), ClientId = table.Column<Guid>(type: "uuid", nullable: false),
Provider = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false) Provider = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_IdentityServerClientIdPRestrictions", x => new { x.ClientId, x.Provider }); table.PrimaryKey("PK_IdentityServerClientIdPRestrictions", x => new { x.ClientId, x.Provider });
table.ForeignKey( table.ForeignKey(
name: "FK_IdentityServerClientIdPRestrictions_IdentityServerClients_ClientId", name: "FK_IdentityServerClientIdPRestrictions_IdentityServerClients_C~",
column: x => x.ClientId, column: x => x.ClientId,
principalTable: "IdentityServerClients", principalTable: "IdentityServerClients",
principalColumn: "Id", principalColumn: "Id",
@ -693,14 +693,14 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerClientPostLogoutRedirectUris", name: "IdentityServerClientPostLogoutRedirectUris",
columns: table => new columns: table => new
{ {
ClientId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), ClientId = table.Column<Guid>(type: "uuid", nullable: false),
PostLogoutRedirectUri = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: false) PostLogoutRedirectUri = table.Column<string>(type: "character varying(2000)", maxLength: 2000, nullable: false)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_IdentityServerClientPostLogoutRedirectUris", x => new { x.ClientId, x.PostLogoutRedirectUri }); table.PrimaryKey("PK_IdentityServerClientPostLogoutRedirectUris", x => new { x.ClientId, x.PostLogoutRedirectUri });
table.ForeignKey( table.ForeignKey(
name: "FK_IdentityServerClientPostLogoutRedirectUris_IdentityServerClients_ClientId", name: "FK_IdentityServerClientPostLogoutRedirectUris_IdentityServerCl~",
column: x => x.ClientId, column: x => x.ClientId,
principalTable: "IdentityServerClients", principalTable: "IdentityServerClients",
principalColumn: "Id", principalColumn: "Id",
@ -711,15 +711,15 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerClientProperties", name: "IdentityServerClientProperties",
columns: table => new columns: table => new
{ {
ClientId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), ClientId = table.Column<Guid>(type: "uuid", nullable: false),
Key = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: false), Key = table.Column<string>(type: "character varying(250)", maxLength: 250, nullable: false),
Value = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: false) Value = table.Column<string>(type: "character varying(2000)", maxLength: 2000, nullable: false)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_IdentityServerClientProperties", x => new { x.ClientId, x.Key, x.Value }); table.PrimaryKey("PK_IdentityServerClientProperties", x => new { x.ClientId, x.Key, x.Value });
table.ForeignKey( table.ForeignKey(
name: "FK_IdentityServerClientProperties_IdentityServerClients_ClientId", name: "FK_IdentityServerClientProperties_IdentityServerClients_Client~",
column: x => x.ClientId, column: x => x.ClientId,
principalTable: "IdentityServerClients", principalTable: "IdentityServerClients",
principalColumn: "Id", principalColumn: "Id",
@ -730,14 +730,14 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerClientRedirectUris", name: "IdentityServerClientRedirectUris",
columns: table => new columns: table => new
{ {
ClientId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), ClientId = table.Column<Guid>(type: "uuid", nullable: false),
RedirectUri = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: false) RedirectUri = table.Column<string>(type: "character varying(2000)", maxLength: 2000, nullable: false)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_IdentityServerClientRedirectUris", x => new { x.ClientId, x.RedirectUri }); table.PrimaryKey("PK_IdentityServerClientRedirectUris", x => new { x.ClientId, x.RedirectUri });
table.ForeignKey( table.ForeignKey(
name: "FK_IdentityServerClientRedirectUris_IdentityServerClients_ClientId", name: "FK_IdentityServerClientRedirectUris_IdentityServerClients_Clie~",
column: x => x.ClientId, column: x => x.ClientId,
principalTable: "IdentityServerClients", principalTable: "IdentityServerClients",
principalColumn: "Id", principalColumn: "Id",
@ -748,8 +748,8 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerClientScopes", name: "IdentityServerClientScopes",
columns: table => new columns: table => new
{ {
ClientId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), ClientId = table.Column<Guid>(type: "uuid", nullable: false),
Scope = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false) Scope = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false)
}, },
constraints: table => constraints: table =>
{ {
@ -766,11 +766,11 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerClientSecrets", name: "IdentityServerClientSecrets",
columns: table => new columns: table => new
{ {
Type = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: false), Type = table.Column<string>(type: "character varying(250)", maxLength: 250, nullable: false),
Value = table.Column<string>(type: "nvarchar(4000)", maxLength: 4000, nullable: false), Value = table.Column<string>(type: "character varying(4000)", maxLength: 4000, nullable: false),
ClientId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), ClientId = table.Column<Guid>(type: "uuid", nullable: false),
Description = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true), Description = table.Column<string>(type: "character varying(2000)", maxLength: 2000, nullable: true),
Expiration = table.Column<DateTime>(type: "datetime2", nullable: true) Expiration = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
}, },
constraints: table => constraints: table =>
{ {
@ -787,14 +787,14 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerIdentityResourceClaims", name: "IdentityServerIdentityResourceClaims",
columns: table => new columns: table => new
{ {
Type = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false), Type = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
IdentityResourceId = table.Column<Guid>(type: "uniqueidentifier", nullable: false) IdentityResourceId = table.Column<Guid>(type: "uuid", nullable: false)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_IdentityServerIdentityResourceClaims", x => new { x.IdentityResourceId, x.Type }); table.PrimaryKey("PK_IdentityServerIdentityResourceClaims", x => new { x.IdentityResourceId, x.Type });
table.ForeignKey( table.ForeignKey(
name: "FK_IdentityServerIdentityResourceClaims_IdentityServerIdentityResources_IdentityResourceId", name: "FK_IdentityServerIdentityResourceClaims_IdentityServerIdentity~",
column: x => x.IdentityResourceId, column: x => x.IdentityResourceId,
principalTable: "IdentityServerIdentityResources", principalTable: "IdentityServerIdentityResources",
principalColumn: "Id", principalColumn: "Id",
@ -805,15 +805,15 @@ namespace EShopOnAbp.IdentityService.Migrations
name: "IdentityServerIdentityResourceProperties", name: "IdentityServerIdentityResourceProperties",
columns: table => new columns: table => new
{ {
IdentityResourceId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), IdentityResourceId = table.Column<Guid>(type: "uuid", nullable: false),
Key = table.Column<string>(type: "nvarchar(250)", maxLength: 250, nullable: false), Key = table.Column<string>(type: "character varying(250)", maxLength: 250, nullable: false),
Value = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: false) Value = table.Column<string>(type: "character varying(2000)", maxLength: 2000, nullable: false)
}, },
constraints: table => constraints: table =>
{ {
table.PrimaryKey("PK_IdentityServerIdentityResourceProperties", x => new { x.IdentityResourceId, x.Key, x.Value }); table.PrimaryKey("PK_IdentityServerIdentityResourceProperties", x => new { x.IdentityResourceId, x.Key, x.Value });
table.ForeignKey( table.ForeignKey(
name: "FK_IdentityServerIdentityResourceProperties_IdentityServerIdentityResources_IdentityResourceId", name: "FK_IdentityServerIdentityResourceProperties_IdentityServerIden~",
column: x => x.IdentityResourceId, column: x => x.IdentityResourceId,
principalTable: "IdentityServerIdentityResources", principalTable: "IdentityServerIdentityResources",
principalColumn: "Id", principalColumn: "Id",
@ -821,11 +821,10 @@ namespace EShopOnAbp.IdentityService.Migrations
}); });
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_TargetTenantId", name: "IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_Targe~",
table: "AbpLinkUsers", table: "AbpLinkUsers",
columns: new[] { "SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId" }, columns: new[] { "SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId" },
unique: true, unique: true);
filter: "[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL");
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId", name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId",

581
services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/IdentityServiceDbContextModelSnapshot.cs

File diff suppressed because it is too large

5
services/identity/src/EShopOnAbp.IdentityService.HttpApi.Host/appsettings.json

@ -18,9 +18,8 @@
}, },
"AllowedHosts": "*", "AllowedHosts": "*",
"ConnectionStrings": { "ConnectionStrings": {
"IdentityService": "Server=localhost,1434;Database=EShopOnAbp_Identity;User Id=sa;password=myPassw0rd", "IdentityService": "User ID=postgres;Password=myPassw0rd;Host=localhost;Port=5432;Database=EShopOnAbp_Identity;Pooling=false;",
"AdministrationService": "Server=localhost,1434;Database=EShopOnAbp_Administration;User Id=sa;password=myPassw0rd", "AdministrationService": "User ID=postgres;Password=myPassw0rd;Host=localhost;Port=5432;Database=EShopOnAbp_Administration;Pooling=false;"
"SaasService": "Server=localhost,1434;Database=EShopOnAbp_Saas;User Id=sa;password=myPassw0rd"
}, },
"StringEncryption": { "StringEncryption": {
"DefaultPassPhrase": "gsKnGZ041HLL4IM8" "DefaultPassPhrase": "gsKnGZ041HLL4IM8"

Loading…
Cancel
Save