aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/Migrations/IdentityServer/PersistedGrant
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Migrations/IdentityServer/PersistedGrant')
-rw-r--r--src/server/Migrations/IdentityServer/PersistedGrant/20200811164236_INITIAL_IDENTITY_MIGRATION.Designer.cs127
-rw-r--r--src/server/Migrations/IdentityServer/PersistedGrant/20200811164236_INITIAL_IDENTITY_MIGRATION.cs85
-rw-r--r--src/server/Migrations/IdentityServer/PersistedGrant/PersistedGrantDbContextModelSnapshot.cs125
3 files changed, 337 insertions, 0 deletions
diff --git a/src/server/Migrations/IdentityServer/PersistedGrant/20200811164236_INITIAL_IDENTITY_MIGRATION.Designer.cs b/src/server/Migrations/IdentityServer/PersistedGrant/20200811164236_INITIAL_IDENTITY_MIGRATION.Designer.cs
new file mode 100644
index 0000000..252ba5b
--- /dev/null
+++ b/src/server/Migrations/IdentityServer/PersistedGrant/20200811164236_INITIAL_IDENTITY_MIGRATION.Designer.cs
@@ -0,0 +1,127 @@
+// <auto-generated />
+using System;
+using IdentityServer4.EntityFramework.DbContexts;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+namespace Dough.Migrations.IdentityServer.PersistedGrant
+{
+ [DbContext(typeof(PersistedGrantDbContext))]
+ [Migration("20200811164236_INITIAL_IDENTITY_MIGRATION")]
+ partial class INITIAL_IDENTITY_MIGRATION
+ {
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "3.1.6")
+ .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
+ modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
+ {
+ b.Property<string>("UserCode")
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<string>("ClientId")
+ .IsRequired()
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<DateTime>("CreationTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property<string>("Data")
+ .IsRequired()
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasMaxLength(50000);
+
+ b.Property<string>("Description")
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<string>("DeviceCode")
+ .IsRequired()
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<DateTime?>("Expiration")
+ .IsRequired()
+ .HasColumnType("datetime(6)");
+
+ b.Property<string>("SessionId")
+ .HasColumnType("varchar(100) CHARACTER SET utf8mb4")
+ .HasMaxLength(100);
+
+ b.Property<string>("SubjectId")
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.HasKey("UserCode");
+
+ b.HasIndex("DeviceCode")
+ .IsUnique();
+
+ b.HasIndex("Expiration");
+
+ b.ToTable("DeviceCodes");
+ });
+
+ modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
+ {
+ b.Property<string>("Key")
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<string>("ClientId")
+ .IsRequired()
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<DateTime?>("ConsumedTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property<DateTime>("CreationTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property<string>("Data")
+ .IsRequired()
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasMaxLength(50000);
+
+ b.Property<string>("Description")
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<DateTime?>("Expiration")
+ .HasColumnType("datetime(6)");
+
+ b.Property<string>("SessionId")
+ .HasColumnType("varchar(100) CHARACTER SET utf8mb4")
+ .HasMaxLength(100);
+
+ b.Property<string>("SubjectId")
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<string>("Type")
+ .IsRequired()
+ .HasColumnType("varchar(50) CHARACTER SET utf8mb4")
+ .HasMaxLength(50);
+
+ b.HasKey("Key");
+
+ b.HasIndex("Expiration");
+
+ b.HasIndex("SubjectId", "ClientId", "Type");
+
+ b.HasIndex("SubjectId", "SessionId", "Type");
+
+ b.ToTable("PersistedGrants");
+ });
+#pragma warning restore 612, 618
+ }
+ }
+}
diff --git a/src/server/Migrations/IdentityServer/PersistedGrant/20200811164236_INITIAL_IDENTITY_MIGRATION.cs b/src/server/Migrations/IdentityServer/PersistedGrant/20200811164236_INITIAL_IDENTITY_MIGRATION.cs
new file mode 100644
index 0000000..5ae6fb2
--- /dev/null
+++ b/src/server/Migrations/IdentityServer/PersistedGrant/20200811164236_INITIAL_IDENTITY_MIGRATION.cs
@@ -0,0 +1,85 @@
+using System;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+namespace Dough.Migrations.IdentityServer.PersistedGrant
+{
+ public partial class INITIAL_IDENTITY_MIGRATION : Migration
+ {
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.CreateTable(
+ name: "DeviceCodes",
+ columns: table => new
+ {
+ UserCode = table.Column<string>(maxLength: 200, nullable: false),
+ DeviceCode = table.Column<string>(maxLength: 200, nullable: false),
+ SubjectId = table.Column<string>(maxLength: 200, nullable: true),
+ SessionId = table.Column<string>(maxLength: 100, nullable: true),
+ ClientId = table.Column<string>(maxLength: 200, nullable: false),
+ Description = table.Column<string>(maxLength: 200, nullable: true),
+ CreationTime = table.Column<DateTime>(nullable: false),
+ Expiration = table.Column<DateTime>(nullable: false),
+ Data = table.Column<string>(maxLength: 50000, nullable: false)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_DeviceCodes", x => x.UserCode);
+ });
+
+ migrationBuilder.CreateTable(
+ name: "PersistedGrants",
+ columns: table => new
+ {
+ Key = table.Column<string>(maxLength: 200, nullable: false),
+ Type = table.Column<string>(maxLength: 50, nullable: false),
+ SubjectId = table.Column<string>(maxLength: 200, nullable: true),
+ SessionId = table.Column<string>(maxLength: 100, nullable: true),
+ ClientId = table.Column<string>(maxLength: 200, nullable: false),
+ Description = table.Column<string>(maxLength: 200, nullable: true),
+ CreationTime = table.Column<DateTime>(nullable: false),
+ Expiration = table.Column<DateTime>(nullable: true),
+ ConsumedTime = table.Column<DateTime>(nullable: true),
+ Data = table.Column<string>(maxLength: 50000, nullable: false)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_PersistedGrants", x => x.Key);
+ });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_DeviceCodes_DeviceCode",
+ table: "DeviceCodes",
+ column: "DeviceCode",
+ unique: true);
+
+ migrationBuilder.CreateIndex(
+ name: "IX_DeviceCodes_Expiration",
+ table: "DeviceCodes",
+ column: "Expiration");
+
+ migrationBuilder.CreateIndex(
+ name: "IX_PersistedGrants_Expiration",
+ table: "PersistedGrants",
+ column: "Expiration");
+
+ migrationBuilder.CreateIndex(
+ name: "IX_PersistedGrants_SubjectId_ClientId_Type",
+ table: "PersistedGrants",
+ columns: new[] { "SubjectId", "ClientId", "Type" });
+
+ migrationBuilder.CreateIndex(
+ name: "IX_PersistedGrants_SubjectId_SessionId_Type",
+ table: "PersistedGrants",
+ columns: new[] { "SubjectId", "SessionId", "Type" });
+ }
+
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.DropTable(
+ name: "DeviceCodes");
+
+ migrationBuilder.DropTable(
+ name: "PersistedGrants");
+ }
+ }
+}
diff --git a/src/server/Migrations/IdentityServer/PersistedGrant/PersistedGrantDbContextModelSnapshot.cs b/src/server/Migrations/IdentityServer/PersistedGrant/PersistedGrantDbContextModelSnapshot.cs
new file mode 100644
index 0000000..da76342
--- /dev/null
+++ b/src/server/Migrations/IdentityServer/PersistedGrant/PersistedGrantDbContextModelSnapshot.cs
@@ -0,0 +1,125 @@
+// <auto-generated />
+using System;
+using IdentityServer4.EntityFramework.DbContexts;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+namespace Dough.Migrations.IdentityServer.PersistedGrant
+{
+ [DbContext(typeof(PersistedGrantDbContext))]
+ partial class PersistedGrantDbContextModelSnapshot : ModelSnapshot
+ {
+ protected override void BuildModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "3.1.6")
+ .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
+ modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
+ {
+ b.Property<string>("UserCode")
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<string>("ClientId")
+ .IsRequired()
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<DateTime>("CreationTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property<string>("Data")
+ .IsRequired()
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasMaxLength(50000);
+
+ b.Property<string>("Description")
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<string>("DeviceCode")
+ .IsRequired()
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<DateTime?>("Expiration")
+ .IsRequired()
+ .HasColumnType("datetime(6)");
+
+ b.Property<string>("SessionId")
+ .HasColumnType("varchar(100) CHARACTER SET utf8mb4")
+ .HasMaxLength(100);
+
+ b.Property<string>("SubjectId")
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.HasKey("UserCode");
+
+ b.HasIndex("DeviceCode")
+ .IsUnique();
+
+ b.HasIndex("Expiration");
+
+ b.ToTable("DeviceCodes");
+ });
+
+ modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
+ {
+ b.Property<string>("Key")
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<string>("ClientId")
+ .IsRequired()
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<DateTime?>("ConsumedTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property<DateTime>("CreationTime")
+ .HasColumnType("datetime(6)");
+
+ b.Property<string>("Data")
+ .IsRequired()
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasMaxLength(50000);
+
+ b.Property<string>("Description")
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<DateTime?>("Expiration")
+ .HasColumnType("datetime(6)");
+
+ b.Property<string>("SessionId")
+ .HasColumnType("varchar(100) CHARACTER SET utf8mb4")
+ .HasMaxLength(100);
+
+ b.Property<string>("SubjectId")
+ .HasColumnType("varchar(200) CHARACTER SET utf8mb4")
+ .HasMaxLength(200);
+
+ b.Property<string>("Type")
+ .IsRequired()
+ .HasColumnType("varchar(50) CHARACTER SET utf8mb4")
+ .HasMaxLength(50);
+
+ b.HasKey("Key");
+
+ b.HasIndex("Expiration");
+
+ b.HasIndex("SubjectId", "ClientId", "Type");
+
+ b.HasIndex("SubjectId", "SessionId", "Type");
+
+ b.ToTable("PersistedGrants");
+ });
+#pragma warning restore 612, 618
+ }
+ }
+}