|
|
|
@ -347,6 +347,33 @@ namespace Volo.BloggingTestApp.EntityFrameworkCore.Migrations
|
|
|
|
|
b.ToTable("AbpUserLogins");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("OrganizationUnitId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
|
|
|
.HasColumnName("CreationTime")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
|
|
|
.HasColumnName("CreatorId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
|
|
|
.HasColumnName("TenantId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.HasKey("OrganizationUnitId", "UserId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId", "OrganizationUnitId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AbpUserOrganizationUnits");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("UserId")
|
|
|
|
@ -391,6 +418,106 @@ namespace Volo.BloggingTestApp.EntityFrameworkCore.Migrations
|
|
|
|
|
b.ToTable("AbpUserTokens");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Code")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnName("Code")
|
|
|
|
|
.HasColumnType("nvarchar(95)")
|
|
|
|
|
.HasMaxLength(95);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
|
|
|
.IsConcurrencyToken()
|
|
|
|
|
.HasColumnName("ConcurrencyStamp")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
|
|
|
.HasColumnName("CreationTime")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
|
|
|
.HasColumnName("CreatorId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
|
|
|
.HasColumnName("DeleterId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
|
|
|
.HasColumnName("DeletionTime")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DisplayName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnName("DisplayName")
|
|
|
|
|
.HasColumnType("nvarchar(128)")
|
|
|
|
|
.HasMaxLength(128);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
|
|
|
.HasColumnName("ExtraProperties")
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnName("IsDeleted")
|
|
|
|
|
.HasColumnType("bit")
|
|
|
|
|
.HasDefaultValue(false);
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
|
|
|
.HasColumnName("LastModificationTime")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
|
|
|
.HasColumnName("LastModifierId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("ParentId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
|
|
|
.HasColumnName("TenantId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Code");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ParentId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AbpOrganizationUnits");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("OrganizationUnitId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("RoleId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
|
|
|
.HasColumnName("CreationTime")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
|
|
|
.HasColumnName("CreatorId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
|
|
|
.HasColumnName("TenantId")
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.HasKey("OrganizationUnitId", "RoleId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RoleId", "OrganizationUnitId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AbpOrganizationUnitRoles");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
@ -858,6 +985,21 @@ namespace Volo.BloggingTestApp.EntityFrameworkCore.Migrations
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("Volo.Abp.Identity.OrganizationUnit", null)
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("OrganizationUnitId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
|
|
|
|
|
.WithMany("OrganizationUnits")
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("Volo.Abp.Identity.IdentityRole", null)
|
|
|
|
@ -882,6 +1024,28 @@ namespace Volo.BloggingTestApp.EntityFrameworkCore.Migrations
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("Volo.Abp.Identity.OrganizationUnit", null)
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ParentId");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("Volo.Abp.Identity.OrganizationUnit", null)
|
|
|
|
|
.WithMany("Roles")
|
|
|
|
|
.HasForeignKey("OrganizationUnitId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasOne("Volo.Abp.Identity.IdentityRole", null)
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("RoleId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Blogging.Comments.Comment", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("Volo.Blogging.Posts.Post", null)
|
|
|
|
|