aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Migrations/DevHiveContextModelSnapshot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Web/Migrations/DevHiveContextModelSnapshot.cs')
-rw-r--r--src/DevHive.Web/Migrations/DevHiveContextModelSnapshot.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/DevHive.Web/Migrations/DevHiveContextModelSnapshot.cs b/src/DevHive.Web/Migrations/DevHiveContextModelSnapshot.cs
index c1464d4..328eb9c 100644
--- a/src/DevHive.Web/Migrations/DevHiveContextModelSnapshot.cs
+++ b/src/DevHive.Web/Migrations/DevHiveContextModelSnapshot.cs
@@ -135,6 +135,9 @@ namespace DevHive.Web.Migrations
b.Property<bool>("TwoFactorEnabled")
.HasColumnType("boolean");
+ b.Property<Guid?>("UserId")
+ .HasColumnType("uuid");
+
b.Property<string>("UserName")
.HasMaxLength(256)
.HasColumnType("character varying(256)");
@@ -148,6 +151,8 @@ namespace DevHive.Web.Migrations
.IsUnique()
.HasDatabaseName("UserNameIndex");
+ b.HasIndex("UserId");
+
b.HasIndex("UserName")
.IsUnique();
@@ -274,6 +279,13 @@ namespace DevHive.Web.Migrations
b.ToTable("RoleUser");
});
+ modelBuilder.Entity("DevHive.Data.Models.User", b =>
+ {
+ b.HasOne("DevHive.Data.Models.User", null)
+ .WithMany("Friends")
+ .HasForeignKey("UserId");
+ });
+
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>", b =>
{
b.HasOne("DevHive.Data.Models.Role", null)
@@ -339,6 +351,11 @@ namespace DevHive.Web.Migrations
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
+
+ modelBuilder.Entity("DevHive.Data.Models.User", b =>
+ {
+ b.Navigation("Friends");
+ });
#pragma warning restore 612, 618
}
}