diff options
| author | transtrike <transtrike@gmail.com> | 2021-01-12 13:16:39 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-01-12 13:16:39 +0200 |
| commit | 11bd1d9a9760c7bc6a601d78b3d89ec9028647a2 (patch) | |
| tree | 4e74a8fc10a07f58e11d3612373b17a246ec2868 /src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs | |
| parent | b14dc0fe3e5ecfca3a7e780a17627f823d59246c (diff) | |
| download | DevHive-11bd1d9a9760c7bc6a601d78b3d89ec9028647a2.tar DevHive-11bd1d9a9760c7bc6a601d78b3d89ec9028647a2.tar.gz DevHive-11bd1d9a9760c7bc6a601d78b3d89ec9028647a2.zip | |
Language layers refactored; User implements adding & removing Languages; Migrations added
Diffstat (limited to 'src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs')
| -rw-r--r-- | src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs b/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs index c7ff6c6..cc6d24d 100644 --- a/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs +++ b/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs @@ -25,14 +25,14 @@ namespace DevHive.Data.Migrations .ValueGeneratedOnAdd() .HasColumnType("uuid"); - b.Property<DateTime>("Date") - .HasColumnType("timestamp without time zone"); + b.Property<Guid>("IssuerId") + .HasColumnType("uuid"); b.Property<string>("Message") .HasColumnType("text"); - b.Property<Guid>("UserId") - .HasColumnType("uuid"); + b.Property<DateTime>("TimeCreated") + .HasColumnType("timestamp without time zone"); b.HasKey("Id"); @@ -48,8 +48,13 @@ namespace DevHive.Data.Migrations b.Property<string>("Name") .HasColumnType("text"); + b.Property<Guid?>("UserId") + .HasColumnType("uuid"); + b.HasKey("Id"); + b.HasIndex("UserId"); + b.ToTable("Languages"); }); @@ -89,8 +94,13 @@ namespace DevHive.Data.Migrations b.Property<string>("Name") .HasColumnType("text"); + b.Property<Guid?>("UserId") + .HasColumnType("uuid"); + b.HasKey("Id"); + b.HasIndex("UserId"); + b.ToTable("Technologies"); }); @@ -143,7 +153,7 @@ namespace DevHive.Data.Migrations b.Property<bool>("PhoneNumberConfirmed") .HasColumnType("boolean"); - b.Property<string>("ProfilePicture") + b.Property<string>("ProfilePictureUrl") .HasColumnType("text"); b.Property<string>("SecurityStamp") @@ -292,6 +302,20 @@ namespace DevHive.Data.Migrations b.ToTable("RoleUser"); }); + modelBuilder.Entity("DevHive.Data.Models.Language", b => + { + b.HasOne("DevHive.Data.Models.User", null) + .WithMany("Langauges") + .HasForeignKey("UserId"); + }); + + modelBuilder.Entity("DevHive.Data.Models.Technology", b => + { + b.HasOne("DevHive.Data.Models.User", null) + .WithMany("Technologies") + .HasForeignKey("UserId"); + }); + modelBuilder.Entity("DevHive.Data.Models.User", b => { b.HasOne("DevHive.Data.Models.User", null) @@ -368,6 +392,10 @@ namespace DevHive.Data.Migrations modelBuilder.Entity("DevHive.Data.Models.User", b => { b.Navigation("Friends"); + + b.Navigation("Langauges"); + + b.Navigation("Technologies"); }); #pragma warning restore 612, 618 } |
