aboutsummaryrefslogtreecommitdiff
path: root/API/Migrations/DevHiveContextModelSnapshot.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2020-12-10 14:18:24 +0200
committertranstrike <transtrike@gmail.com>2020-12-10 14:18:24 +0200
commitcc78fe1068a5c2f32be87201516f365bd392db74 (patch)
tree20425f401892dcd6603bd3228ce63220bae7ec5b /API/Migrations/DevHiveContextModelSnapshot.cs
parent6a662373c8300f108ceedaa32b5a076352cb4da6 (diff)
downloadDevHive-cc78fe1068a5c2f32be87201516f365bd392db74.tar
DevHive-cc78fe1068a5c2f32be87201516f365bd392db74.tar.gz
DevHive-cc78fe1068a5c2f32be87201516f365bd392db74.zip
Migrations added & UserMapper beginning
Diffstat (limited to 'API/Migrations/DevHiveContextModelSnapshot.cs')
-rw-r--r--API/Migrations/DevHiveContextModelSnapshot.cs77
1 files changed, 30 insertions, 47 deletions
diff --git a/API/Migrations/DevHiveContextModelSnapshot.cs b/API/Migrations/DevHiveContextModelSnapshot.cs
index 07fe3c4..cf670a2 100644
--- a/API/Migrations/DevHiveContextModelSnapshot.cs
+++ b/API/Migrations/DevHiveContextModelSnapshot.cs
@@ -19,34 +19,6 @@ namespace API.Migrations
.HasAnnotation("Relational:MaxIdentifierLength", 63)
.HasAnnotation("ProductVersion", "5.0.1");
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole<int>", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("integer")
- .UseIdentityByDefaultColumn();
-
- b.Property<string>("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasColumnType("text");
-
- b.Property<string>("Name")
- .HasMaxLength(256)
- .HasColumnType("character varying(256)");
-
- b.Property<string>("NormalizedName")
- .HasMaxLength(256)
- .HasColumnType("character varying(256)");
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedName")
- .IsUnique()
- .HasDatabaseName("RoleNameIndex");
-
- b.ToTable("AspNetRoles");
- });
-
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
{
b.Property<int>("Id")
@@ -160,6 +132,34 @@ namespace API.Migrations
b.ToTable("Languages");
});
+ modelBuilder.Entity("Models.Classes.Roles", b =>
+ {
+ b.Property<int>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .UseIdentityByDefaultColumn();
+
+ b.Property<string>("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasColumnType("text");
+
+ b.Property<string>("Name")
+ .HasMaxLength(256)
+ .HasColumnType("character varying(256)");
+
+ b.Property<string>("NormalizedName")
+ .HasMaxLength(256)
+ .HasColumnType("character varying(256)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("NormalizedName")
+ .IsUnique()
+ .HasDatabaseName("RoleNameIndex");
+
+ b.ToTable("AspNetRoles");
+ });
+
modelBuilder.Entity("Models.Classes.Technology", b =>
{
b.Property<int>("Id")
@@ -233,9 +233,6 @@ namespace API.Migrations
b.Property<bool>("TwoFactorEnabled")
.HasColumnType("boolean");
- b.Property<int?>("UserId")
- .HasColumnType("integer");
-
b.Property<string>("UserName")
.IsRequired()
.HasMaxLength(256)
@@ -250,14 +247,12 @@ namespace API.Migrations
.IsUnique()
.HasDatabaseName("UserNameIndex");
- b.HasIndex("UserId");
-
b.ToTable("AspNetUsers");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
{
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole<int>", null)
+ b.HasOne("Models.Classes.Roles", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
@@ -284,7 +279,7 @@ namespace API.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b =>
{
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole<int>", null)
+ b.HasOne("Models.Classes.Roles", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
@@ -305,18 +300,6 @@ namespace API.Migrations
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
-
- modelBuilder.Entity("Models.Classes.User", b =>
- {
- b.HasOne("Models.Classes.User", null)
- .WithMany("Friends")
- .HasForeignKey("UserId");
- });
-
- modelBuilder.Entity("Models.Classes.User", b =>
- {
- b.Navigation("Friends");
- });
#pragma warning restore 612, 618
}
}