//
using System;
using AuthServer.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore;
#nullable disable
namespace AuthServer.Migrations
{
[DbContext(typeof(AuthServerDbContext))]
[Migration("20221225153937_init")]
partial class init
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
.HasAnnotation("ProductVersion", "6.0.10")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ClientId")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property("ClientSecret")
.HasColumnType("longtext");
b.Property("ClientUri")
.HasColumnType("longtext");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("ConsentType")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property("CreationTime")
.HasColumnType("datetime")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime")
.HasColumnName("DeletionTime");
b.Property("DisplayName")
.HasColumnType("longtext");
b.Property("DisplayNames")
.HasColumnType("longtext");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("LogoUri")
.HasColumnType("longtext");
b.Property("Permissions")
.HasColumnType("longtext");
b.Property("PostLogoutRedirectUris")
.HasColumnType("longtext");
b.Property("Properties")
.HasColumnType("longtext");
b.Property("RedirectUris")
.HasColumnType("longtext");
b.Property("Requirements")
.HasColumnType("longtext");
b.Property("Type")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("OpenIddictApplications", (string)null);
});
modelBuilder.Entity("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ApplicationId")
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationDate")
.HasColumnType("datetime");
b.Property("CreationTime")
.HasColumnType("datetime")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime")
.HasColumnName("DeletionTime");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("Properties")
.HasColumnType("longtext");
b.Property("Scopes")
.HasColumnType("longtext");
b.Property("Status")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property("Subject")
.HasMaxLength(400)
.HasColumnType("varchar(400)");
b.Property("Type")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.HasKey("Id");
b.HasIndex("ApplicationId", "Status", "Subject", "Type");
b.ToTable("OpenIddictAuthorizations", (string)null);
});
modelBuilder.Entity("Volo.Abp.OpenIddict.Scopes.OpenIddictScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime")
.HasColumnName("DeletionTime");
b.Property("Description")
.HasColumnType("longtext");
b.Property("Descriptions")
.HasColumnType("longtext");
b.Property("DisplayName")
.HasColumnType("longtext");
b.Property("DisplayNames")
.HasColumnType("longtext");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("Name")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("Properties")
.HasColumnType("longtext");
b.Property("Resources")
.HasColumnType("longtext");
b.HasKey("Id");
b.HasIndex("Name");
b.ToTable("OpenIddictScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.OpenIddict.Tokens.OpenIddictToken", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ApplicationId")
.HasColumnType("char(36)");
b.Property("AuthorizationId")
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationDate")
.HasColumnType("datetime");
b.Property("CreationTime")
.HasColumnType("datetime")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime")
.HasColumnName("DeletionTime");
b.Property("ExpirationDate")
.HasColumnType("datetime");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("Payload")
.HasColumnType("longtext");
b.Property("Properties")
.HasColumnType("longtext");
b.Property("RedemptionDate")
.HasColumnType("datetime");
b.Property("ReferenceId")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property("Status")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property("Subject")
.HasMaxLength(400)
.HasColumnType("varchar(400)");
b.Property("Type")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.HasKey("Id");
b.HasIndex("AuthorizationId");
b.HasIndex("ReferenceId");
b.HasIndex("ApplicationId", "Status", "Subject", "Type");
b.ToTable("OpenIddictTokens", (string)null);
});
modelBuilder.Entity("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", b =>
{
b.HasOne("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", null)
.WithMany()
.HasForeignKey("ApplicationId");
});
modelBuilder.Entity("Volo.Abp.OpenIddict.Tokens.OpenIddictToken", b =>
{
b.HasOne("Volo.Abp.OpenIddict.Applications.OpenIddictApplication", null)
.WithMany()
.HasForeignKey("ApplicationId");
b.HasOne("Volo.Abp.OpenIddict.Authorizations.OpenIddictAuthorization", null)
.WithMany()
.HasForeignKey("AuthorizationId");
});
#pragma warning restore 612, 618
}
}
}