// 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("UserCode") .HasColumnType("varchar(200) CHARACTER SET utf8mb4") .HasMaxLength(200); b.Property("ClientId") .IsRequired() .HasColumnType("varchar(200) CHARACTER SET utf8mb4") .HasMaxLength(200); b.Property("CreationTime") .HasColumnType("datetime(6)"); b.Property("Data") .IsRequired() .HasColumnType("longtext CHARACTER SET utf8mb4") .HasMaxLength(50000); b.Property("Description") .HasColumnType("varchar(200) CHARACTER SET utf8mb4") .HasMaxLength(200); b.Property("DeviceCode") .IsRequired() .HasColumnType("varchar(200) CHARACTER SET utf8mb4") .HasMaxLength(200); b.Property("Expiration") .IsRequired() .HasColumnType("datetime(6)"); b.Property("SessionId") .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("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("Key") .HasColumnType("varchar(200) CHARACTER SET utf8mb4") .HasMaxLength(200); b.Property("ClientId") .IsRequired() .HasColumnType("varchar(200) CHARACTER SET utf8mb4") .HasMaxLength(200); b.Property("ConsumedTime") .HasColumnType("datetime(6)"); b.Property("CreationTime") .HasColumnType("datetime(6)"); b.Property("Data") .IsRequired() .HasColumnType("longtext CHARACTER SET utf8mb4") .HasMaxLength(50000); b.Property("Description") .HasColumnType("varchar(200) CHARACTER SET utf8mb4") .HasMaxLength(200); b.Property("Expiration") .HasColumnType("datetime(6)"); b.Property("SessionId") .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("SubjectId") .HasColumnType("varchar(200) CHARACTER SET utf8mb4") .HasMaxLength(200); b.Property("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 } } }