mirror of https://github.com/abpframework/abp
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							309 lines
						
					
					
						
							11 KiB
						
					
					
				
			
		
		
	
	
							309 lines
						
					
					
						
							11 KiB
						
					
					
				| // <auto-generated />
 | |
| 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<Guid>("Id")
 | |
|                         .ValueGeneratedOnAdd();
 | |
| 
 | |
|                     b.Property<string>("BrowserInfo")
 | |
|                         .HasColumnName("BrowserInfo")
 | |
|                         .HasMaxLength(512);
 | |
| 
 | |
|                     b.Property<string>("ClientIpAddress")
 | |
|                         .HasColumnName("ClientIpAddress")
 | |
|                         .HasMaxLength(64);
 | |
| 
 | |
|                     b.Property<string>("ClientName")
 | |
|                         .HasColumnName("ClientName")
 | |
|                         .HasMaxLength(128);
 | |
| 
 | |
|                     b.Property<string>("Comments")
 | |
|                         .HasColumnName("Comments")
 | |
|                         .HasMaxLength(256);
 | |
| 
 | |
|                     b.Property<string>("ConcurrencyStamp");
 | |
| 
 | |
|                     b.Property<string>("Exceptions")
 | |
|                         .HasColumnName("Exceptions")
 | |
|                         .HasMaxLength(4000);
 | |
| 
 | |
|                     b.Property<int>("ExecutionDuration")
 | |
|                         .HasColumnName("ExecutionDuration");
 | |
| 
 | |
|                     b.Property<DateTime>("ExecutionTime");
 | |
| 
 | |
|                     b.Property<string>("ExtraProperties")
 | |
|                         .HasColumnName("ExtraProperties");
 | |
| 
 | |
|                     b.Property<string>("HttpMethod")
 | |
|                         .HasColumnName("HttpMethod")
 | |
|                         .HasMaxLength(16);
 | |
| 
 | |
|                     b.Property<int?>("HttpStatusCode")
 | |
|                         .HasColumnName("HttpStatusCode");
 | |
| 
 | |
|                     b.Property<Guid?>("ImpersonatorTenantId")
 | |
|                         .HasColumnName("ImpersonatorTenantId");
 | |
| 
 | |
|                     b.Property<Guid?>("ImpersonatorUserId")
 | |
|                         .HasColumnName("ImpersonatorUserId");
 | |
| 
 | |
|                     b.Property<Guid?>("TenantId")
 | |
|                         .HasColumnName("TenantId");
 | |
| 
 | |
|                     b.Property<string>("Url")
 | |
|                         .HasColumnName("Url")
 | |
|                         .HasMaxLength(256);
 | |
| 
 | |
|                     b.Property<Guid?>("UserId")
 | |
|                         .HasColumnName("UserId");
 | |
| 
 | |
|                     b.Property<string>("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<Guid>("Id")
 | |
|                         .ValueGeneratedOnAdd();
 | |
| 
 | |
|                     b.Property<Guid>("AuditLogId")
 | |
|                         .HasColumnName("AuditLogId");
 | |
| 
 | |
|                     b.Property<Guid?>("AuditLogId1");
 | |
| 
 | |
|                     b.Property<int>("ExecutionDuration")
 | |
|                         .HasColumnName("ExecutionDuration");
 | |
| 
 | |
|                     b.Property<DateTime>("ExecutionTime")
 | |
|                         .HasColumnName("ExecutionTime");
 | |
| 
 | |
|                     b.Property<string>("ExtraProperties")
 | |
|                         .HasColumnName("ExtraProperties");
 | |
| 
 | |
|                     b.Property<string>("MethodName")
 | |
|                         .HasColumnName("MethodName")
 | |
|                         .HasMaxLength(128);
 | |
| 
 | |
|                     b.Property<string>("Parameters")
 | |
|                         .HasColumnName("Parameters")
 | |
|                         .HasMaxLength(2000);
 | |
| 
 | |
|                     b.Property<string>("ServiceName")
 | |
|                         .HasColumnName("ServiceName")
 | |
|                         .HasMaxLength(256);
 | |
| 
 | |
|                     b.Property<Guid?>("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<Guid>("Id")
 | |
|                         .ValueGeneratedOnAdd();
 | |
| 
 | |
|                     b.Property<Guid>("AuditLogId")
 | |
|                         .HasColumnName("AuditLogId");
 | |
| 
 | |
|                     b.Property<Guid?>("AuditLogId1");
 | |
| 
 | |
|                     b.Property<DateTime>("ChangeTime")
 | |
|                         .HasColumnName("ChangeTime");
 | |
| 
 | |
|                     b.Property<byte>("ChangeType")
 | |
|                         .HasColumnName("ChangeType");
 | |
| 
 | |
|                     b.Property<string>("EntityId")
 | |
|                         .IsRequired()
 | |
|                         .HasColumnName("EntityId")
 | |
|                         .HasMaxLength(128);
 | |
| 
 | |
|                     b.Property<string>("EntityTypeFullName")
 | |
|                         .IsRequired()
 | |
|                         .HasColumnName("EntityTypeFullName")
 | |
|                         .HasMaxLength(128);
 | |
| 
 | |
|                     b.Property<string>("ExtraProperties")
 | |
|                         .HasColumnName("ExtraProperties");
 | |
| 
 | |
|                     b.Property<Guid?>("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<Guid>("Id")
 | |
|                         .ValueGeneratedOnAdd();
 | |
| 
 | |
|                     b.Property<Guid>("EntityChangeId");
 | |
| 
 | |
|                     b.Property<Guid?>("EntityChangeId1");
 | |
| 
 | |
|                     b.Property<string>("NewValue")
 | |
|                         .HasColumnName("NewValue")
 | |
|                         .HasMaxLength(512);
 | |
| 
 | |
|                     b.Property<string>("OriginalValue")
 | |
|                         .HasColumnName("OriginalValue")
 | |
|                         .HasMaxLength(512);
 | |
| 
 | |
|                     b.Property<string>("PropertyName")
 | |
|                         .IsRequired()
 | |
|                         .HasColumnName("PropertyName")
 | |
|                         .HasMaxLength(128);
 | |
| 
 | |
|                     b.Property<string>("PropertyTypeFullName")
 | |
|                         .IsRequired()
 | |
|                         .HasColumnName("PropertyTypeFullName")
 | |
|                         .HasMaxLength(64);
 | |
| 
 | |
|                     b.Property<Guid?>("TenantId");
 | |
| 
 | |
|                     b.HasKey("Id");
 | |
| 
 | |
|                     b.HasIndex("EntityChangeId");
 | |
| 
 | |
|                     b.HasIndex("EntityChangeId1");
 | |
| 
 | |
|                     b.ToTable("AbpEntityPropertyChanges");
 | |
|                 });
 | |
| 
 | |
|             modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
 | |
|                 {
 | |
|                     b.Property<Guid>("Id")
 | |
|                         .ValueGeneratedOnAdd();
 | |
| 
 | |
|                     b.Property<string>("Name")
 | |
|                         .IsRequired()
 | |
|                         .HasMaxLength(128);
 | |
| 
 | |
|                     b.Property<string>("ProviderKey")
 | |
|                         .IsRequired()
 | |
|                         .HasMaxLength(64);
 | |
| 
 | |
|                     b.Property<string>("ProviderName")
 | |
|                         .IsRequired()
 | |
|                         .HasMaxLength(64);
 | |
| 
 | |
|                     b.Property<Guid?>("TenantId");
 | |
| 
 | |
|                     b.HasKey("Id");
 | |
| 
 | |
|                     b.HasIndex("Name", "ProviderName", "ProviderKey");
 | |
| 
 | |
|                     b.ToTable("AbpPermissionGrants");
 | |
|                 });
 | |
| 
 | |
|             modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b =>
 | |
|                 {
 | |
|                     b.Property<Guid>("Id")
 | |
|                         .ValueGeneratedOnAdd();
 | |
| 
 | |
|                     b.Property<string>("Name")
 | |
|                         .IsRequired()
 | |
|                         .HasMaxLength(128);
 | |
| 
 | |
|                     b.Property<string>("ProviderKey")
 | |
|                         .HasMaxLength(64);
 | |
| 
 | |
|                     b.Property<string>("ProviderName")
 | |
|                         .HasMaxLength(64);
 | |
| 
 | |
|                     b.Property<string>("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
 | |
|         }
 | |
|     }
 | |
| }
 |