|
|
|
@ -221,6 +221,26 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
table.PrimaryKey("PK_AbpSecurityLogs", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpSessions", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
SessionId = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), |
|
|
|
Device = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
|
|
DeviceInfo = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
|
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
|
|
UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
ClientId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
|
|
IpAddresses = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), |
|
|
|
SignedIn = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
LastAccessed = table.Column<DateTime>(type: "datetime2", nullable: true) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
table.PrimaryKey("PK_AbpSessions", x => x.Id); |
|
|
|
}); |
|
|
|
|
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "AbpSettingDefinitions", |
|
|
|
columns: table => new |
|
|
|
@ -262,6 +282,7 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
|
|
NormalizedName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
|
|
EntityVersion = table.Column<int>(type: "int", nullable: false), |
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: false), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false), |
|
|
|
@ -753,6 +774,21 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
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", |
|
|
|
@ -771,6 +807,11 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
table: "AbpTenants", |
|
|
|
column: "Name"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpTenants_NormalizedName", |
|
|
|
table: "AbpTenants", |
|
|
|
column: "NormalizedName"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpUserClaims_UserId", |
|
|
|
table: "AbpUserClaims", |
|
|
|
@ -878,6 +919,9 @@ namespace OpenIddict.Demo.Server.Migrations |
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpSecurityLogs"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpSessions"); |
|
|
|
|
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "AbpSettingDefinitions"); |
|
|
|
|