|
|
|
@ -8,20 +8,23 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
|
using Volo.CmsKit.EntityFrameworkCore; |
|
|
|
|
|
|
|
#nullable disable |
|
|
|
|
|
|
|
namespace Volo.CmsKit.Migrations |
|
|
|
{ |
|
|
|
[DbContext(typeof(UnifiedDbContext))] |
|
|
|
[Migration("20210817095158_ConcurrencyStampUpdate")] |
|
|
|
partial class ConcurrencyStampUpdate |
|
|
|
[Migration("20211110134400_Initial")] |
|
|
|
partial class Initial |
|
|
|
{ |
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder) |
|
|
|
{ |
|
|
|
#pragma warning disable 612, 618
|
|
|
|
modelBuilder |
|
|
|
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) |
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128) |
|
|
|
.HasAnnotation("ProductVersion", "5.0.9") |
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
|
|
|
.HasAnnotation("ProductVersion", "6.0.0") |
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128); |
|
|
|
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => |
|
|
|
{ |
|
|
|
@ -128,7 +131,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("TenantId", "UserId", "ExecutionTime"); |
|
|
|
|
|
|
|
b.ToTable("AbpAuditLogs"); |
|
|
|
b.ToTable("AbpAuditLogs", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => |
|
|
|
@ -178,7 +181,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); |
|
|
|
|
|
|
|
b.ToTable("AbpAuditLogActions"); |
|
|
|
b.ToTable("AbpAuditLogActions", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => |
|
|
|
@ -228,7 +231,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); |
|
|
|
|
|
|
|
b.ToTable("AbpEntityChanges"); |
|
|
|
b.ToTable("AbpEntityChanges", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => |
|
|
|
@ -270,7 +273,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("EntityChangeId"); |
|
|
|
|
|
|
|
b.ToTable("AbpEntityPropertyChanges"); |
|
|
|
b.ToTable("AbpEntityPropertyChanges", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b => |
|
|
|
@ -311,7 +314,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("TenantId", "ContainerId", "Name"); |
|
|
|
|
|
|
|
b.ToTable("AbpBlobs"); |
|
|
|
b.ToTable("AbpBlobs", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", b => |
|
|
|
@ -343,7 +346,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("TenantId", "Name"); |
|
|
|
|
|
|
|
b.ToTable("AbpBlobContainers"); |
|
|
|
b.ToTable("AbpBlobContainers", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => |
|
|
|
@ -372,9 +375,11 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.HasIndex("Name", "ProviderName", "ProviderKey"); |
|
|
|
b.HasIndex("Name", "ProviderName", "ProviderKey") |
|
|
|
.IsUnique() |
|
|
|
.HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); |
|
|
|
|
|
|
|
b.ToTable("AbpFeatureValues"); |
|
|
|
b.ToTable("AbpFeatureValues", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => |
|
|
|
@ -421,7 +426,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.ToTable("AbpClaimTypes"); |
|
|
|
b.ToTable("AbpClaimTypes", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => |
|
|
|
@ -448,7 +453,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
.IsUnique() |
|
|
|
.HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); |
|
|
|
|
|
|
|
b.ToTable("AbpLinkUsers"); |
|
|
|
b.ToTable("AbpLinkUsers", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => |
|
|
|
@ -497,7 +502,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpRoles"); |
|
|
|
b.ToTable("AbpRoles", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => |
|
|
|
@ -525,7 +530,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("RoleId"); |
|
|
|
|
|
|
|
b.ToTable("AbpRoleClaims"); |
|
|
|
b.ToTable("AbpRoleClaims", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => |
|
|
|
@ -600,7 +605,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("TenantId", "UserId"); |
|
|
|
|
|
|
|
b.ToTable("AbpSecurityLogs"); |
|
|
|
b.ToTable("AbpSecurityLogs", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => |
|
|
|
@ -653,6 +658,9 @@ namespace Volo.CmsKit.Migrations |
|
|
|
.HasColumnType("nvarchar(max)") |
|
|
|
.HasColumnName("ExtraProperties"); |
|
|
|
|
|
|
|
b.Property<bool>("IsActive") |
|
|
|
.HasColumnType("bit"); |
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted") |
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
.HasColumnType("bit") |
|
|
|
@ -752,7 +760,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("UserName"); |
|
|
|
|
|
|
|
b.ToTable("AbpUsers"); |
|
|
|
b.ToTable("AbpUsers", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => |
|
|
|
@ -780,7 +788,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("UserId"); |
|
|
|
|
|
|
|
b.ToTable("AbpUserClaims"); |
|
|
|
b.ToTable("AbpUserClaims", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => |
|
|
|
@ -809,7 +817,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("LoginProvider", "ProviderKey"); |
|
|
|
|
|
|
|
b.ToTable("AbpUserLogins"); |
|
|
|
b.ToTable("AbpUserLogins", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => |
|
|
|
@ -836,7 +844,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("UserId", "OrganizationUnitId"); |
|
|
|
|
|
|
|
b.ToTable("AbpUserOrganizationUnits"); |
|
|
|
b.ToTable("AbpUserOrganizationUnits", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => |
|
|
|
@ -855,7 +863,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("RoleId", "UserId"); |
|
|
|
|
|
|
|
b.ToTable("AbpUserRoles"); |
|
|
|
b.ToTable("AbpUserRoles", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => |
|
|
|
@ -880,7 +888,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name"); |
|
|
|
|
|
|
|
b.ToTable("AbpUserTokens"); |
|
|
|
b.ToTable("AbpUserTokens", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => |
|
|
|
@ -954,7 +962,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("ParentId"); |
|
|
|
|
|
|
|
b.ToTable("AbpOrganizationUnits"); |
|
|
|
b.ToTable("AbpOrganizationUnits", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => |
|
|
|
@ -981,7 +989,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("RoleId", "OrganizationUnitId"); |
|
|
|
|
|
|
|
b.ToTable("AbpOrganizationUnitRoles"); |
|
|
|
b.ToTable("AbpOrganizationUnitRoles", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => |
|
|
|
@ -1011,9 +1019,11 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.HasIndex("Name", "ProviderName", "ProviderKey"); |
|
|
|
b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey") |
|
|
|
.IsUnique() |
|
|
|
.HasFilter("[TenantId] IS NOT NULL"); |
|
|
|
|
|
|
|
b.ToTable("AbpPermissionGrants"); |
|
|
|
b.ToTable("AbpPermissionGrants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => |
|
|
|
@ -1042,9 +1052,11 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.HasIndex("Name", "ProviderName", "ProviderKey"); |
|
|
|
b.HasIndex("Name", "ProviderName", "ProviderKey") |
|
|
|
.IsUnique() |
|
|
|
.HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); |
|
|
|
|
|
|
|
b.ToTable("AbpSettings"); |
|
|
|
b.ToTable("AbpSettings", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => |
|
|
|
@ -1102,7 +1114,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants"); |
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => |
|
|
|
@ -1121,7 +1133,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasKey("TenantId", "Name"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenantConnectionStrings"); |
|
|
|
b.ToTable("AbpTenantConnectionStrings", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Blogs.Blog", b => |
|
|
|
@ -1186,7 +1198,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.ToTable("CmsBlogs"); |
|
|
|
b.ToTable("CmsBlogs", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Blogs.BlogFeature", b => |
|
|
|
@ -1248,7 +1260,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.ToTable("CmsBlogFeatures"); |
|
|
|
b.ToTable("CmsBlogFeatures", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Blogs.BlogPost", b => |
|
|
|
@ -1334,7 +1346,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Slug", "BlogId"); |
|
|
|
|
|
|
|
b.ToTable("CmsBlogPosts"); |
|
|
|
b.ToTable("CmsBlogPosts", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Comments.Comment", b => |
|
|
|
@ -1367,6 +1379,10 @@ namespace Volo.CmsKit.Migrations |
|
|
|
.HasMaxLength(64) |
|
|
|
.HasColumnType("nvarchar(64)"); |
|
|
|
|
|
|
|
b.Property<string>("ExtraProperties") |
|
|
|
.HasColumnType("nvarchar(max)") |
|
|
|
.HasColumnName("ExtraProperties"); |
|
|
|
|
|
|
|
b.Property<Guid?>("RepliedCommentId") |
|
|
|
.HasColumnType("uniqueidentifier"); |
|
|
|
|
|
|
|
@ -1385,7 +1401,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("TenantId", "EntityType", "EntityId"); |
|
|
|
|
|
|
|
b.ToTable("CmsComments"); |
|
|
|
b.ToTable("CmsComments", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.MediaDescriptors.MediaDescriptor", b => |
|
|
|
@ -1459,7 +1475,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.ToTable("CmsMediaDescriptors"); |
|
|
|
b.ToTable("CmsMediaDescriptors", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Menus.MenuItem", b => |
|
|
|
@ -1534,7 +1550,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.ToTable("CmsMenuItems"); |
|
|
|
b.ToTable("CmsMenuItems", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Pages.Page", b => |
|
|
|
@ -1611,7 +1627,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("TenantId", "Slug"); |
|
|
|
|
|
|
|
b.ToTable("CmsPages"); |
|
|
|
b.ToTable("CmsPages", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Ratings.Rating", b => |
|
|
|
@ -1648,7 +1664,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("TenantId", "EntityType", "EntityId", "CreatorId"); |
|
|
|
|
|
|
|
b.ToTable("CmsRatings"); |
|
|
|
b.ToTable("CmsRatings", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Reactions.UserReaction", b => |
|
|
|
@ -1690,7 +1706,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("TenantId", "CreatorId", "EntityType", "EntityId", "ReactionName"); |
|
|
|
|
|
|
|
b.ToTable("CmsUserReactions"); |
|
|
|
b.ToTable("CmsUserReactions", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Tags.EntityTag", b => |
|
|
|
@ -1709,7 +1725,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("TenantId", "EntityId", "TagId"); |
|
|
|
|
|
|
|
b.ToTable("CmsEntityTags"); |
|
|
|
b.ToTable("CmsEntityTags", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Tags.Tag", b => |
|
|
|
@ -1776,7 +1792,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("TenantId", "Name"); |
|
|
|
|
|
|
|
b.ToTable("CmsTags"); |
|
|
|
b.ToTable("CmsTags", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.CmsKit.Users.CmsUser", b => |
|
|
|
@ -1844,7 +1860,7 @@ namespace Volo.CmsKit.Migrations |
|
|
|
|
|
|
|
b.HasIndex("TenantId", "UserName"); |
|
|
|
|
|
|
|
b.ToTable("CmsUsers"); |
|
|
|
b.ToTable("CmsUsers", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => |