diff options
| author | transtrike <transtrike@gmail.com> | 2021-01-28 01:08:31 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-01-28 01:08:31 +0200 |
| commit | e632e9241e8afe530f6b37cb683b211769135c45 (patch) | |
| tree | 37674ce51d0ce272bb9ddd8535bf67956f01a3cb /src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs | |
| parent | f8e17868c617e1734c0e77e58a8318300a5b663a (diff) | |
| download | DevHive-e632e9241e8afe530f6b37cb683b211769135c45.tar DevHive-e632e9241e8afe530f6b37cb683b211769135c45.tar.gz DevHive-e632e9241e8afe530f6b37cb683b211769135c45.zip | |
USER UPDATE FIIIIIIXED
Diffstat (limited to 'src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs')
| -rw-r--r-- | src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs b/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs index 755c274..cf0a82b 100644 --- a/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs +++ b/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs @@ -201,6 +201,21 @@ namespace DevHive.Data.Migrations b.ToTable("AspNetUsers"); }); + modelBuilder.Entity("DevHive.Data.RelationModels.UserFriends", b => + { + b.Property<Guid>("UserId") + .HasColumnType("uuid"); + + b.Property<Guid>("FriendId") + .HasColumnType("uuid"); + + b.HasKey("UserId", "FriendId"); + + b.HasIndex("FriendId"); + + b.ToTable("UserFriends"); + }); + modelBuilder.Entity("LanguageUser", b => { b.Property<Guid>("LanguagesId") @@ -363,6 +378,25 @@ namespace DevHive.Data.Migrations .HasForeignKey("UserId"); }); + modelBuilder.Entity("DevHive.Data.RelationModels.UserFriends", b => + { + b.HasOne("DevHive.Data.Models.User", "Friend") + .WithMany() + .HasForeignKey("FriendId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("DevHive.Data.Models.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Friend"); + + b.Navigation("User"); + }); + modelBuilder.Entity("LanguageUser", b => { b.HasOne("DevHive.Data.Models.Language", null) |
