// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using MyCompanyName.MyProjectName.Host; namespace MyCompanyName.MyProjectName.Host.Migrations { [DbContext(typeof(DemoAppDbContext))] partial class DemoAppDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "2.1.1-rtm-30846") .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("BrowserInfo") .HasColumnName("BrowserInfo") .HasMaxLength(512); b.Property("ClientIpAddress") .HasColumnName("ClientIpAddress") .HasMaxLength(64); b.Property("ClientName") .HasColumnName("ClientName") .HasMaxLength(128); b.Property("Comments") .HasColumnName("Comments") .HasMaxLength(256); b.Property("ConcurrencyStamp"); b.Property("Exceptions") .HasColumnName("Exceptions") .HasMaxLength(4000); b.Property("ExecutionDuration") .HasColumnName("ExecutionDuration"); b.Property("ExecutionTime"); b.Property("ExtraProperties") .HasColumnName("ExtraProperties"); b.Property("HttpMethod") .HasColumnName("HttpMethod") .HasMaxLength(16); b.Property("HttpStatusCode") .HasColumnName("HttpStatusCode"); b.Property("ImpersonatorTenantId") .HasColumnName("ImpersonatorTenantId"); b.Property("ImpersonatorUserId") .HasColumnName("ImpersonatorUserId"); b.Property("TenantId") .HasColumnName("TenantId"); b.Property("Url") .HasColumnName("Url") .HasMaxLength(256); b.Property("UserId") .HasColumnName("UserId"); b.Property("UserName") .HasColumnName("UserName") .HasMaxLength(256); b.HasKey("Id"); b.HasIndex("TenantId", "ExecutionTime"); b.HasIndex("TenantId", "UserId", "ExecutionTime"); b.ToTable("AbpAuditLogs"); }); modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("AuditLogId") .HasColumnName("AuditLogId"); b.Property("AuditLogId1"); b.Property("ExecutionDuration") .HasColumnName("ExecutionDuration"); b.Property("ExecutionTime") .HasColumnName("ExecutionTime"); b.Property("ExtraProperties") .HasColumnName("ExtraProperties"); b.Property("MethodName") .HasColumnName("MethodName") .HasMaxLength(128); b.Property("Parameters") .HasColumnName("Parameters") .HasMaxLength(2000); b.Property("ServiceName") .HasColumnName("ServiceName") .HasMaxLength(256); b.Property("TenantId"); b.HasKey("Id"); b.HasIndex("AuditLogId"); b.HasIndex("AuditLogId1"); b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); b.ToTable("AbpAuditLogActions"); }); modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("AuditLogId") .HasColumnName("AuditLogId"); b.Property("AuditLogId1"); b.Property("ChangeTime") .HasColumnName("ChangeTime"); b.Property("ChangeType") .HasColumnName("ChangeType"); b.Property("EntityId") .IsRequired() .HasColumnName("EntityId") .HasMaxLength(128); b.Property("EntityTypeFullName") .IsRequired() .HasColumnName("EntityTypeFullName") .HasMaxLength(128); b.Property("ExtraProperties") .HasColumnName("ExtraProperties"); b.Property("TenantId") .HasColumnName("TenantId"); b.HasKey("Id"); b.HasIndex("AuditLogId"); b.HasIndex("AuditLogId1"); b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); b.ToTable("AbpEntityChanges"); }); modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("EntityChangeId"); b.Property("EntityChangeId1"); b.Property("NewValue") .HasColumnName("NewValue") .HasMaxLength(512); b.Property("OriginalValue") .HasColumnName("OriginalValue") .HasMaxLength(512); b.Property("PropertyName") .IsRequired() .HasColumnName("PropertyName") .HasMaxLength(128); b.Property("PropertyTypeFullName") .IsRequired() .HasColumnName("PropertyTypeFullName") .HasMaxLength(64); b.Property("TenantId"); b.HasKey("Id"); b.HasIndex("EntityChangeId"); b.HasIndex("EntityChangeId1"); b.ToTable("AbpEntityPropertyChanges"); }); modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("Name") .IsRequired() .HasMaxLength(128); b.Property("ProviderKey") .IsRequired() .HasMaxLength(64); b.Property("ProviderName") .IsRequired() .HasMaxLength(64); b.Property("TenantId"); b.HasKey("Id"); b.HasIndex("Name", "ProviderName", "ProviderKey"); b.ToTable("AbpPermissionGrants"); }); modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("Name") .IsRequired() .HasMaxLength(128); b.Property("ProviderKey") .HasMaxLength(64); b.Property("ProviderName") .HasMaxLength(64); b.Property("Value") .IsRequired() .HasMaxLength(2048); b.HasKey("Id"); b.HasIndex("Name", "ProviderName", "ProviderKey"); b.ToTable("AbpSettings"); }); modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => { b.HasOne("Volo.Abp.AuditLogging.AuditLog") .WithMany() .HasForeignKey("AuditLogId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("Volo.Abp.AuditLogging.AuditLog") .WithMany("Actions") .HasForeignKey("AuditLogId1"); }); modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => { b.HasOne("Volo.Abp.AuditLogging.AuditLog") .WithMany() .HasForeignKey("AuditLogId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("Volo.Abp.AuditLogging.AuditLog") .WithMany("EntityChanges") .HasForeignKey("AuditLogId1"); }); modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => { b.HasOne("Volo.Abp.AuditLogging.EntityChange") .WithMany() .HasForeignKey("EntityChangeId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("Volo.Abp.AuditLogging.EntityChange") .WithMany("PropertyChanges") .HasForeignKey("EntityChangeId1"); }); #pragma warning restore 612, 618 } } }