add mare profiles
This commit is contained in:
@@ -17,7 +17,7 @@ namespace MareSynchronosServer.Migrations
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "7.0.3")
|
||||
.HasAnnotation("ProductVersion", "7.0.4")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
@@ -415,6 +415,75 @@ namespace MareSynchronosServer.Migrations
|
||||
b.ToTable("users", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("MareSynchronosShared.Models.UserProfileData", b =>
|
||||
{
|
||||
b.Property<string>("UserUID")
|
||||
.HasColumnType("character varying(10)")
|
||||
.HasColumnName("user_uid");
|
||||
|
||||
b.Property<string>("Base64ProfileImage")
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("base64profile_image");
|
||||
|
||||
b.Property<bool>("FlaggedForReport")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("flagged_for_report");
|
||||
|
||||
b.Property<bool>("IsNSFW")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("is_nsfw");
|
||||
|
||||
b.Property<bool>("ProfileDisabled")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("profile_disabled");
|
||||
|
||||
b.Property<string>("UserDescription")
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("user_description");
|
||||
|
||||
b.HasKey("UserUID")
|
||||
.HasName("pk_user_profile_data");
|
||||
|
||||
b.ToTable("user_profile_data", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("MareSynchronosShared.Models.UserProfileDataReport", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("id");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<DateTime>("ReportDate")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("report_date");
|
||||
|
||||
b.Property<string>("ReportReason")
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("report_reason");
|
||||
|
||||
b.Property<string>("ReportedUserUID")
|
||||
.HasColumnType("character varying(10)")
|
||||
.HasColumnName("reported_user_uid");
|
||||
|
||||
b.Property<string>("ReportingUserUID")
|
||||
.HasColumnType("character varying(10)")
|
||||
.HasColumnName("reporting_user_uid");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("pk_user_profile_data_reports");
|
||||
|
||||
b.HasIndex("ReportedUserUID")
|
||||
.HasDatabaseName("ix_user_profile_data_reports_reported_user_uid");
|
||||
|
||||
b.HasIndex("ReportingUserUID")
|
||||
.HasDatabaseName("ix_user_profile_data_reports_reporting_user_uid");
|
||||
|
||||
b.ToTable("user_profile_data_reports", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("MareSynchronosShared.Models.Auth", b =>
|
||||
{
|
||||
b.HasOne("MareSynchronosShared.Models.User", "PrimaryUser")
|
||||
@@ -543,6 +612,35 @@ namespace MareSynchronosServer.Migrations
|
||||
|
||||
b.Navigation("User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("MareSynchronosShared.Models.UserProfileData", b =>
|
||||
{
|
||||
b.HasOne("MareSynchronosShared.Models.User", "User")
|
||||
.WithMany()
|
||||
.HasForeignKey("UserUID")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("fk_user_profile_data_users_user_uid");
|
||||
|
||||
b.Navigation("User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("MareSynchronosShared.Models.UserProfileDataReport", b =>
|
||||
{
|
||||
b.HasOne("MareSynchronosShared.Models.User", "ReportedUser")
|
||||
.WithMany()
|
||||
.HasForeignKey("ReportedUserUID")
|
||||
.HasConstraintName("fk_user_profile_data_reports_users_reported_user_uid");
|
||||
|
||||
b.HasOne("MareSynchronosShared.Models.User", "ReportingUser")
|
||||
.WithMany()
|
||||
.HasForeignKey("ReportingUserUID")
|
||||
.HasConstraintName("fk_user_profile_data_reports_users_reporting_user_uid");
|
||||
|
||||
b.Navigation("ReportedUser");
|
||||
|
||||
b.Navigation("ReportingUser");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user