mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-10-03 22:59:41 +00:00
1966 lines
72 KiB
C#
1966 lines
72 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using LBPUnion.ProjectLighthouse.Database;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace ProjectLighthouse.Migrations
|
|
{
|
|
[DbContext(typeof(DatabaseContext))]
|
|
partial class DatabaseContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "8.0.3")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
|
|
|
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ActivityEntity", b =>
|
|
{
|
|
b.Property<int>("ActivityId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ActivityId"));
|
|
|
|
b.Property<string>("Discriminator")
|
|
.IsRequired()
|
|
.HasMaxLength(34)
|
|
.HasColumnType("varchar(34)");
|
|
|
|
b.Property<DateTime>("Timestamp")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("ActivityId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("Activities");
|
|
|
|
b.HasDiscriminator<string>("Discriminator").HasValue("ActivityEntity");
|
|
|
|
b.UseTphMappingStrategy();
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.HeartedLevelEntity", b =>
|
|
{
|
|
b.Property<int>("HeartedLevelId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("HeartedLevelId"));
|
|
|
|
b.Property<int>("SlotId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("HeartedLevelId");
|
|
|
|
b.HasIndex("SlotId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("HeartedLevels");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.HeartedPlaylistEntity", b =>
|
|
{
|
|
b.Property<int>("HeartedPlaylistId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("HeartedPlaylistId"));
|
|
|
|
b.Property<int>("PlaylistId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("HeartedPlaylistId");
|
|
|
|
b.HasIndex("PlaylistId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("HeartedPlaylists");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.HeartedProfileEntity", b =>
|
|
{
|
|
b.Property<int>("HeartedProfileId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("HeartedProfileId"));
|
|
|
|
b.Property<int>("HeartedUserId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("HeartedProfileId");
|
|
|
|
b.HasIndex("HeartedUserId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("HeartedProfiles");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.QueuedLevelEntity", b =>
|
|
{
|
|
b.Property<int>("QueuedLevelId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("QueuedLevelId"));
|
|
|
|
b.Property<int>("SlotId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("QueuedLevelId");
|
|
|
|
b.HasIndex("SlotId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("QueuedLevels");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.RatedCommentEntity", b =>
|
|
{
|
|
b.Property<int>("RatingId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("RatingId"));
|
|
|
|
b.Property<int>("CommentId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Rating")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("RatingId");
|
|
|
|
b.HasIndex("CommentId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("RatedComments");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.RatedLevelEntity", b =>
|
|
{
|
|
b.Property<int>("RatedLevelId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("RatedLevelId"));
|
|
|
|
b.Property<int>("Rating")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("RatingLBP1")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<int>("SlotId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("TagLBP1")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("RatedLevelId");
|
|
|
|
b.HasIndex("SlotId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("RatedLevels");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.RatedReviewEntity", b =>
|
|
{
|
|
b.Property<int>("RatedReviewId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("RatedReviewId"));
|
|
|
|
b.Property<int>("ReviewId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Thumb")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("RatedReviewId");
|
|
|
|
b.HasIndex("ReviewId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("RatedReviews");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.VisitedLevelEntity", b =>
|
|
{
|
|
b.Property<int>("VisitedLevelId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("VisitedLevelId"));
|
|
|
|
b.Property<int>("PlaysLBP1")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("PlaysLBP2")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("PlaysLBP3")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SlotId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("VisitedLevelId");
|
|
|
|
b.HasIndex("SlotId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("VisitedLevels");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Level.DatabaseCategoryEntity", b =>
|
|
{
|
|
b.Property<int>("CategoryId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("CategoryId"));
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Endpoint")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("IconHash")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("SlotIdsCollection")
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("CategoryId");
|
|
|
|
b.ToTable("CustomCategories");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Level.PlaylistEntity", b =>
|
|
{
|
|
b.Property<int>("PlaylistId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("PlaylistId"));
|
|
|
|
b.Property<int>("CreatorId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("SlotCollection")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("PlaylistId");
|
|
|
|
b.HasIndex("CreatorId");
|
|
|
|
b.ToTable("Playlists");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Level.ReviewEntity", b =>
|
|
{
|
|
b.Property<int>("ReviewId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ReviewId"));
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("DeletedBy")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("LabelCollection")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("ReviewerId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SlotId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Text")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("Thumb")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ThumbsDown")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ThumbsUp")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("Timestamp")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("ReviewId");
|
|
|
|
b.HasIndex("ReviewerId");
|
|
|
|
b.HasIndex("SlotId");
|
|
|
|
b.ToTable("Reviews");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Level.ScoreEntity", b =>
|
|
{
|
|
b.Property<int>("ScoreId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ScoreId"));
|
|
|
|
b.Property<int>("ChildSlotId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Points")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SlotId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("Timestamp")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("ScoreId");
|
|
|
|
b.HasIndex("SlotId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("Scores");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", b =>
|
|
{
|
|
b.Property<int>("SlotId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("SlotId"));
|
|
|
|
b.Property<string>("AuthorLabels")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("BackgroundHash")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("CommentsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("CreatorId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("CrossControllerRequired")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<long>("FirstUploaded")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("GameVersion")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Hidden")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("HiddenReason")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("IconHash")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("InitiallyLocked")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("InternalSlotId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsAdventurePlanet")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<long>("LastUpdated")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("Lbp1Only")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("LevelType")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<ulong>("LocationPacked")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<bool>("LockedByModerator")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("LockedReason")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("MaximumPlayers")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MinimumPlayers")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("MoveRequired")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("PlaysLBP1")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("PlaysLBP1Complete")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("PlaysLBP1Unique")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("PlaysLBP2")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("PlaysLBP2Complete")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("PlaysLBP2Unique")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("PlaysLBP3")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("PlaysLBP3Complete")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("PlaysLBP3Unique")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ResourceCollection")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("RootLevel")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("Shareable")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("SubLevel")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<long>("TeamPickTime")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("SlotId");
|
|
|
|
b.HasIndex("CreatorId");
|
|
|
|
b.ToTable("Slots");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Maintenance.CompletedMigrationEntity", b =>
|
|
{
|
|
b.Property<string>("MigrationName")
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.Property<DateTime>("RanAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("MigrationName");
|
|
|
|
b.ToTable("CompletedMigrations");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Moderation.GriefReportEntity", b =>
|
|
{
|
|
b.Property<int>("ReportId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ReportId"));
|
|
|
|
b.Property<string>("Bounds")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("GriefStateHash")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("InitialStateHash")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("JpegHash")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("LevelId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("LevelOwner")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("LevelType")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Players")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("ReportingPlayerId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("Timestamp")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("ReportId");
|
|
|
|
b.HasIndex("ReportingPlayerId");
|
|
|
|
b.ToTable("Reports");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Moderation.ModerationCaseEntity", b =>
|
|
{
|
|
b.Property<int>("CaseId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("CaseId"));
|
|
|
|
b.Property<int>("AffectedId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("CreatorId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CreatorUsername")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<DateTime?>("DismissedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int?>("DismisserId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("DismisserUsername")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<DateTime?>("ExpiresAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("ModeratorNotes")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("Processed")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Reason")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("CaseId");
|
|
|
|
b.HasIndex("CreatorId");
|
|
|
|
b.HasIndex("DismisserId");
|
|
|
|
b.ToTable("Cases");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Notifications.NotificationEntity", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<bool>("IsDismissed")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Text")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("Notifications");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Profile.BlockedProfileEntity", b =>
|
|
{
|
|
b.Property<int>("BlockedProfileId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("BlockedProfileId"));
|
|
|
|
b.Property<int>("BlockedUserId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("BlockedProfileId");
|
|
|
|
b.HasIndex("BlockedUserId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("BlockedProfiles");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Profile.CommentEntity", b =>
|
|
{
|
|
b.Property<int>("CommentId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("CommentId"));
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("DeletedBy")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("DeletedType")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Message")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("PosterUserId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("TargetSlotId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("TargetUserId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ThumbsDown")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ThumbsUp")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("Timestamp")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("CommentId");
|
|
|
|
b.HasIndex("PosterUserId");
|
|
|
|
b.HasIndex("TargetSlotId");
|
|
|
|
b.HasIndex("TargetUserId");
|
|
|
|
b.ToTable("Comments");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Profile.LastContactEntity", b =>
|
|
{
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("GameVersion")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Platform")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("Timestamp")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("UserId");
|
|
|
|
b.ToTable("LastContacts");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Profile.PhotoEntity", b =>
|
|
{
|
|
b.Property<int>("PhotoId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("PhotoId"));
|
|
|
|
b.Property<int>("CreatorId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("LargeHash")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("MediumHash")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("PlanHash")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int?>("SlotId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("SmallHash")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<long>("Timestamp")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("PhotoId");
|
|
|
|
b.HasIndex("CreatorId");
|
|
|
|
b.HasIndex("SlotId");
|
|
|
|
b.ToTable("Photos");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Profile.PhotoSubjectEntity", b =>
|
|
{
|
|
b.Property<int>("PhotoSubjectId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("PhotoSubjectId"));
|
|
|
|
b.Property<string>("Bounds")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("PhotoId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("PhotoSubjectId");
|
|
|
|
b.HasIndex("PhotoId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("PhotoSubjects");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Profile.PlatformLinkAttemptEntity", b =>
|
|
{
|
|
b.Property<int>("PlatformLinkAttemptId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("PlatformLinkAttemptId"));
|
|
|
|
b.Property<string>("IPAddress")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("Platform")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<ulong>("PlatformId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<long>("Timestamp")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("PlatformLinkAttemptId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("PlatformLinkAttempts");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", b =>
|
|
{
|
|
b.Property<int>("UserId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("UserId"));
|
|
|
|
b.Property<int>("AdminGrantedSlots")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("BannedReason")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Biography")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("BooHash")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("CommentsEnabled")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("EmailAddress")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("EmailAddressVerified")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("IconHash")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Language")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<long>("LastLogin")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("LastLogout")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("LevelVisibility")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<ulong>("LinkedPsnId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong>("LinkedRpcnId")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<ulong>("LocationPacked")
|
|
.HasColumnType("bigint unsigned");
|
|
|
|
b.Property<string>("MehHash")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Password")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("PasswordResetRequired")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("PermissionLevel")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Pins")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("PlanetHashLBP2")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("PlanetHashLBP2CC")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("PlanetHashLBP3")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("PlanetHashLBPVita")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("ProfileTag")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("ProfileVisibility")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("TimeZone")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("TwoFactorBackup")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("TwoFactorSecret")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("YayHash")
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("UserId");
|
|
|
|
b.ToTable("Users");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Token.ApiKeyEntity", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<DateTime>("Created")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Key")
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("APIKeys");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Token.EmailSetTokenEntity", b =>
|
|
{
|
|
b.Property<int>("EmailSetTokenId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("EmailSetTokenId"));
|
|
|
|
b.Property<string>("EmailToken")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<DateTime>("ExpiresAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("EmailSetTokenId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("EmailSetTokens");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Token.EmailVerificationTokenEntity", b =>
|
|
{
|
|
b.Property<int>("EmailVerificationTokenId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("EmailVerificationTokenId"));
|
|
|
|
b.Property<string>("EmailToken")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<DateTime>("ExpiresAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("EmailVerificationTokenId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("EmailVerificationTokens");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Token.GameTokenEntity", b =>
|
|
{
|
|
b.Property<int>("TokenId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("TokenId"));
|
|
|
|
b.Property<DateTime>("ExpiresAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("GameVersion")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Platform")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("TicketHash")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("UserToken")
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("TokenId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("GameTokens");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Token.PasswordResetTokenEntity", b =>
|
|
{
|
|
b.Property<int>("TokenId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("TokenId"));
|
|
|
|
b.Property<DateTime>("Created")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("ResetToken")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("TokenId");
|
|
|
|
b.ToTable("PasswordResetTokens");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Token.RegistrationTokenEntity", b =>
|
|
{
|
|
b.Property<int>("TokenId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("TokenId"));
|
|
|
|
b.Property<DateTime>("Created")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Token")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Username")
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("TokenId");
|
|
|
|
b.ToTable("RegistrationTokens");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Token.WebTokenEntity", b =>
|
|
{
|
|
b.Property<int>("TokenId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("TokenId"));
|
|
|
|
b.Property<DateTime>("ExpiresAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("UserToken")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("Verified")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.HasKey("TokenId");
|
|
|
|
b.ToTable("WebTokens");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Website.WebsiteAnnouncementEntity", b =>
|
|
{
|
|
b.Property<int>("AnnouncementId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("AnnouncementId"));
|
|
|
|
b.Property<string>("Content")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<DateTime>("PublishedAt")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int?>("PublisherId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("AnnouncementId");
|
|
|
|
b.HasIndex("PublisherId");
|
|
|
|
b.ToTable("WebsiteAnnouncements");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.LevelActivityEntity", b =>
|
|
{
|
|
b.HasBaseType("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ActivityEntity");
|
|
|
|
b.Property<int>("SlotId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int")
|
|
.HasColumnName("SlotId");
|
|
|
|
b.HasIndex("SlotId");
|
|
|
|
b.HasDiscriminator().HasValue("LevelActivityEntity");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.LevelCommentActivityEntity", b =>
|
|
{
|
|
b.HasBaseType("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ActivityEntity");
|
|
|
|
b.Property<int>("CommentId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SlotId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int")
|
|
.HasColumnName("SlotId");
|
|
|
|
b.HasIndex("CommentId");
|
|
|
|
b.HasIndex("SlotId");
|
|
|
|
b.HasDiscriminator().HasValue("LevelCommentActivityEntity");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.LevelPhotoActivity", b =>
|
|
{
|
|
b.HasBaseType("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ActivityEntity");
|
|
|
|
b.Property<int>("PhotoId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SlotId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int")
|
|
.HasColumnName("SlotId");
|
|
|
|
b.HasIndex("PhotoId");
|
|
|
|
b.HasIndex("SlotId");
|
|
|
|
b.HasDiscriminator().HasValue("LevelPhotoActivity");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.NewsActivityEntity", b =>
|
|
{
|
|
b.HasBaseType("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ActivityEntity");
|
|
|
|
b.Property<int>("NewsId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasIndex("NewsId");
|
|
|
|
b.HasDiscriminator().HasValue("NewsActivityEntity");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.PlaylistActivityEntity", b =>
|
|
{
|
|
b.HasBaseType("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ActivityEntity");
|
|
|
|
b.Property<int>("PlaylistId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int")
|
|
.HasColumnName("PlaylistId");
|
|
|
|
b.HasIndex("PlaylistId");
|
|
|
|
b.HasDiscriminator().HasValue("PlaylistActivityEntity");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.PlaylistWithSlotActivityEntity", b =>
|
|
{
|
|
b.HasBaseType("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ActivityEntity");
|
|
|
|
b.Property<int>("PlaylistId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int")
|
|
.HasColumnName("PlaylistId");
|
|
|
|
b.Property<int>("SlotId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int")
|
|
.HasColumnName("SlotId");
|
|
|
|
b.HasIndex("PlaylistId");
|
|
|
|
b.HasDiscriminator().HasValue("PlaylistWithSlotActivityEntity");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ReviewActivityEntity", b =>
|
|
{
|
|
b.HasBaseType("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ActivityEntity");
|
|
|
|
b.Property<int>("ReviewId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SlotId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int")
|
|
.HasColumnName("SlotId");
|
|
|
|
b.HasIndex("ReviewId");
|
|
|
|
b.HasIndex("SlotId");
|
|
|
|
b.HasDiscriminator().HasValue("ReviewActivityEntity");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ScoreActivityEntity", b =>
|
|
{
|
|
b.HasBaseType("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ActivityEntity");
|
|
|
|
b.Property<int>("Points")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ScoreId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SlotId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int")
|
|
.HasColumnName("SlotId");
|
|
|
|
b.HasIndex("ScoreId");
|
|
|
|
b.HasIndex("SlotId");
|
|
|
|
b.HasDiscriminator().HasValue("ScoreActivityEntity");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.UserActivityEntity", b =>
|
|
{
|
|
b.HasBaseType("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ActivityEntity");
|
|
|
|
b.Property<int>("TargetUserId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int")
|
|
.HasColumnName("TargetUserId");
|
|
|
|
b.HasIndex("TargetUserId");
|
|
|
|
b.HasDiscriminator().HasValue("UserActivityEntity");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.UserCommentActivityEntity", b =>
|
|
{
|
|
b.HasBaseType("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ActivityEntity");
|
|
|
|
b.Property<int>("CommentId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("TargetUserId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int")
|
|
.HasColumnName("TargetUserId");
|
|
|
|
b.HasIndex("CommentId");
|
|
|
|
b.HasIndex("TargetUserId");
|
|
|
|
b.HasDiscriminator().HasValue("UserCommentActivityEntity");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.UserPhotoActivity", b =>
|
|
{
|
|
b.HasBaseType("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ActivityEntity");
|
|
|
|
b.Property<int>("PhotoId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("TargetUserId")
|
|
.ValueGeneratedOnUpdateSometimes()
|
|
.HasColumnType("int")
|
|
.HasColumnName("TargetUserId");
|
|
|
|
b.HasIndex("PhotoId");
|
|
|
|
b.HasIndex("TargetUserId");
|
|
|
|
b.HasDiscriminator().HasValue("UserPhotoActivity");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ActivityEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.HeartedLevelEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", "Slot")
|
|
.WithMany()
|
|
.HasForeignKey("SlotId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Slot");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.HeartedPlaylistEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.PlaylistEntity", "Playlist")
|
|
.WithMany()
|
|
.HasForeignKey("PlaylistId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Playlist");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.HeartedProfileEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "HeartedUser")
|
|
.WithMany()
|
|
.HasForeignKey("HeartedUserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("HeartedUser");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.QueuedLevelEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", "Slot")
|
|
.WithMany()
|
|
.HasForeignKey("SlotId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Slot");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.RatedCommentEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.CommentEntity", "Comment")
|
|
.WithMany()
|
|
.HasForeignKey("CommentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Comment");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.RatedLevelEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", "Slot")
|
|
.WithMany()
|
|
.HasForeignKey("SlotId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Slot");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.RatedReviewEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.ReviewEntity", "Review")
|
|
.WithMany()
|
|
.HasForeignKey("ReviewId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Review");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Interaction.VisitedLevelEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", "Slot")
|
|
.WithMany()
|
|
.HasForeignKey("SlotId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Slot");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Level.PlaylistEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "Creator")
|
|
.WithMany()
|
|
.HasForeignKey("CreatorId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Creator");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Level.ReviewEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "Reviewer")
|
|
.WithMany()
|
|
.HasForeignKey("ReviewerId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", "Slot")
|
|
.WithMany()
|
|
.HasForeignKey("SlotId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Reviewer");
|
|
|
|
b.Navigation("Slot");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Level.ScoreEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", "Slot")
|
|
.WithMany()
|
|
.HasForeignKey("SlotId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Slot");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "Creator")
|
|
.WithMany()
|
|
.HasForeignKey("CreatorId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Creator");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Moderation.GriefReportEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "ReportingPlayer")
|
|
.WithMany()
|
|
.HasForeignKey("ReportingPlayerId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ReportingPlayer");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Moderation.ModerationCaseEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "Creator")
|
|
.WithMany()
|
|
.HasForeignKey("CreatorId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "Dismisser")
|
|
.WithMany()
|
|
.HasForeignKey("DismisserId");
|
|
|
|
b.Navigation("Creator");
|
|
|
|
b.Navigation("Dismisser");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Notifications.NotificationEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Profile.BlockedProfileEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "BlockedUser")
|
|
.WithMany()
|
|
.HasForeignKey("BlockedUserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("BlockedUser");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Profile.CommentEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "Poster")
|
|
.WithMany()
|
|
.HasForeignKey("PosterUserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", "TargetSlot")
|
|
.WithMany()
|
|
.HasForeignKey("TargetSlotId");
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "TargetUser")
|
|
.WithMany()
|
|
.HasForeignKey("TargetUserId");
|
|
|
|
b.Navigation("Poster");
|
|
|
|
b.Navigation("TargetSlot");
|
|
|
|
b.Navigation("TargetUser");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Profile.LastContactEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Profile.PhotoEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "Creator")
|
|
.WithMany()
|
|
.HasForeignKey("CreatorId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", "Slot")
|
|
.WithMany()
|
|
.HasForeignKey("SlotId");
|
|
|
|
b.Navigation("Creator");
|
|
|
|
b.Navigation("Slot");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Profile.PhotoSubjectEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.PhotoEntity", "Photo")
|
|
.WithMany("PhotoSubjects")
|
|
.HasForeignKey("PhotoId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Photo");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Profile.PlatformLinkAttemptEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Token.EmailSetTokenEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Token.EmailVerificationTokenEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Token.GameTokenEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Website.WebsiteAnnouncementEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "Publisher")
|
|
.WithMany()
|
|
.HasForeignKey("PublisherId");
|
|
|
|
b.Navigation("Publisher");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.LevelActivityEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", "Slot")
|
|
.WithMany()
|
|
.HasForeignKey("SlotId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Slot");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.LevelCommentActivityEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.CommentEntity", "Comment")
|
|
.WithMany()
|
|
.HasForeignKey("CommentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", "Slot")
|
|
.WithMany()
|
|
.HasForeignKey("SlotId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Comment");
|
|
|
|
b.Navigation("Slot");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.LevelPhotoActivity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.PhotoEntity", "Photo")
|
|
.WithMany()
|
|
.HasForeignKey("PhotoId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", "Slot")
|
|
.WithMany()
|
|
.HasForeignKey("SlotId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Photo");
|
|
|
|
b.Navigation("Slot");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.NewsActivityEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Website.WebsiteAnnouncementEntity", "News")
|
|
.WithMany()
|
|
.HasForeignKey("NewsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("News");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.PlaylistActivityEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.PlaylistEntity", "Playlist")
|
|
.WithMany()
|
|
.HasForeignKey("PlaylistId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Playlist");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.PlaylistWithSlotActivityEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.PlaylistEntity", "Playlist")
|
|
.WithMany()
|
|
.HasForeignKey("PlaylistId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Playlist");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ReviewActivityEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.ReviewEntity", "Review")
|
|
.WithMany()
|
|
.HasForeignKey("ReviewId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", "Slot")
|
|
.WithMany()
|
|
.HasForeignKey("SlotId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Review");
|
|
|
|
b.Navigation("Slot");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.ScoreActivityEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.ScoreEntity", "Score")
|
|
.WithMany()
|
|
.HasForeignKey("ScoreId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Level.SlotEntity", "Slot")
|
|
.WithMany()
|
|
.HasForeignKey("SlotId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Score");
|
|
|
|
b.Navigation("Slot");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.UserActivityEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "TargetUser")
|
|
.WithMany()
|
|
.HasForeignKey("TargetUserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("TargetUser");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.UserCommentActivityEntity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.CommentEntity", "Comment")
|
|
.WithMany()
|
|
.HasForeignKey("CommentId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "TargetUser")
|
|
.WithMany()
|
|
.HasForeignKey("TargetUserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Comment");
|
|
|
|
b.Navigation("TargetUser");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Activity.UserPhotoActivity", b =>
|
|
{
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.PhotoEntity", "Photo")
|
|
.WithMany()
|
|
.HasForeignKey("PhotoId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("LBPUnion.ProjectLighthouse.Types.Entities.Profile.UserEntity", "TargetUser")
|
|
.WithMany()
|
|
.HasForeignKey("TargetUserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Photo");
|
|
|
|
b.Navigation("TargetUser");
|
|
});
|
|
|
|
modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Entities.Profile.PhotoEntity", b =>
|
|
{
|
|
b.Navigation("PhotoSubjects");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|