aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-02-03 12:31:32 +0200
committertranstrike <transtrike@gmail.com>2021-02-03 12:31:32 +0200
commitb417eb391795f157a9db894647730f1daf69a1d3 (patch)
tree8a59e5958172839b17e59f0f7cdeaf95ee0492c9 /src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
parent8174d2b35c1d3fa90df8b9cb4a75bb3381ea5e39 (diff)
parent5d0e9f2c19b68a73baeebf623980d458e3aab80c (diff)
downloadDevHive-b417eb391795f157a9db894647730f1daf69a1d3.tar
DevHive-b417eb391795f157a9db894647730f1daf69a1d3.tar.gz
DevHive-b417eb391795f157a9db894647730f1daf69a1d3.zip
Merge branch 'dev' of github.com:Team-Kaleidoscope/DevHive into dev
Diffstat (limited to 'src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs')
-rw-r--r--src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs36
1 files changed, 33 insertions, 3 deletions
diff --git a/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs b/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
index 96cabad..0450670 100644
--- a/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
+++ b/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
@@ -86,6 +86,26 @@ namespace DevHive.Data.Migrations
b.ToTable("Posts");
});
+ modelBuilder.Entity("DevHive.Data.Models.ProfilePicture", b =>
+ {
+ b.Property<Guid>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uuid");
+
+ b.Property<string>("PictureURL")
+ .HasColumnType("text");
+
+ b.Property<Guid>("UserId")
+ .HasColumnType("uuid");
+
+ b.HasKey("Id");
+
+ b.HasIndex("UserId")
+ .IsUnique();
+
+ b.ToTable("ProfilePicture");
+ });
+
modelBuilder.Entity("DevHive.Data.Models.Rating", b =>
{
b.Property<Guid>("Id")
@@ -190,9 +210,6 @@ namespace DevHive.Data.Migrations
b.Property<bool>("PhoneNumberConfirmed")
.HasColumnType("boolean");
- b.Property<string>("ProfilePictureUrl")
- .HasColumnType("text");
-
b.Property<string>("SecurityStamp")
.HasColumnType("text");
@@ -437,6 +454,17 @@ namespace DevHive.Data.Migrations
b.Navigation("Creator");
});
+ modelBuilder.Entity("DevHive.Data.Models.ProfilePicture", b =>
+ {
+ b.HasOne("DevHive.Data.Models.User", "User")
+ .WithOne("ProfilePicture")
+ .HasForeignKey("DevHive.Data.Models.ProfilePicture", "UserId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("User");
+ });
+
modelBuilder.Entity("DevHive.Data.RelationModels.RatedPost", b =>
{
b.HasOne("DevHive.Data.Models.Post", "Post")
@@ -594,6 +622,8 @@ namespace DevHive.Data.Migrations
b.Navigation("MyFriends");
b.Navigation("Posts");
+
+ b.Navigation("ProfilePicture");
});
#pragma warning restore 612, 618
}