mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-26 15:38:45 -07:00
4edf25b2d5
Targets Rec Room 2020.12.18 client.
Re-import after adding:
- DorkNet.ClientMod/dorknet-clientmod.json.template — config schema
the launcher's manifest-driven patcher renders into UserData/.
- tools/build-patcher-zip.ps1 — produces the dorknet-clientpatch-{key}.zip
Release asset the launcher fetches.
- .github/workflows/release.yml — auto-publishes both Release assets
on v1-december-* tag push.
Scrubbed via maintainer-side scrub-for-public.ps1: same drop rules as
the prior import, plus build-patcher-zip.ps1 added to the tools/
allow-list so it survives the scrub.
2869 lines
94 KiB
C#
2869 lines
94 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using DorkNet.Server.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace DorkNet.Server.Migrations
|
|
{
|
|
[DbContext(typeof(DorkNetDbContext))]
|
|
[Migration("20260525181055_Initial")]
|
|
partial class Initial
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "9.0.4");
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.AdminActionEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Action")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("AdminPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Reason")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("TargetId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("TargetType")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("Timestamp")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AdminPlayerId");
|
|
|
|
b.HasIndex("Timestamp");
|
|
|
|
b.HasIndex("TargetType", "TargetId");
|
|
|
|
b.ToTable("AdminActions");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.AvatarEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("EquippedItemsJson")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("FaceFeatures")
|
|
.IsRequired()
|
|
.HasMaxLength(8192)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HairColor")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("InventoryJson")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("OutfitSelections")
|
|
.IsRequired()
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("SavedOutfitsJson")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("SkinColor")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Avatars");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.BugReportEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Body")
|
|
.IsRequired()
|
|
.HasMaxLength(4000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Category")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ClientVersion")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("GameSessionId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Platform")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("ReadAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("ReporterPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ReadAt");
|
|
|
|
b.HasIndex("ReporterPlayerId");
|
|
|
|
b.ToTable("BugReports");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.CardEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ActionUrl")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Body")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Category")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("ExpiresAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ImageName")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long?>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Priority")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ExpiresAt");
|
|
|
|
b.HasIndex("PlayerId");
|
|
|
|
b.ToTable("Cards");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.ChatMessageEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Body")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("SenderPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("SentAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ThreadKey")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ThreadKey", "SentAt");
|
|
|
|
b.ToTable("ChatMessages");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.ChatThreadEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("CreatorPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ThreadKey")
|
|
.IsRequired()
|
|
.HasMaxLength(96)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ThreadKey")
|
|
.IsUnique();
|
|
|
|
b.ToTable("ChatThreads");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.ChatThreadMemberEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("JoinedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long?>("LastReadMessageId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("SnoozeUntil")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ThreadKey")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId");
|
|
|
|
b.HasIndex("ThreadKey", "PlayerId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("ChatThreadMembers");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.CheerEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CheeredAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("FromPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("TargetInventionId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("TargetPhotoId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("TargetPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("TargetRoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TargetPhotoId");
|
|
|
|
b.HasIndex("TargetPlayerId");
|
|
|
|
b.HasIndex("TargetRoomId");
|
|
|
|
b.HasIndex("FromPlayerId", "TargetPlayerId", "TargetRoomId", "TargetPhotoId", "Type")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Cheers");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.ClubAnnouncementEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("AuthorPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Body")
|
|
.IsRequired()
|
|
.HasMaxLength(4000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("ClubId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ImageName")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClubId", "CreatedAt");
|
|
|
|
b.ToTable("ClubAnnouncements");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.ClubAnnouncementReadEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("AnnouncementId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("ReadAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId");
|
|
|
|
b.HasIndex("AnnouncementId", "PlayerId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("ClubAnnouncementReads");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.ClubCategoryAssignmentEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("CategoryTagId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("ClubId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CategoryTagId");
|
|
|
|
b.HasIndex("ClubId", "CategoryTagId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("ClubCategoryAssignments");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.ClubCategoryTagEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Active")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("OrderIndex")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Name");
|
|
|
|
b.ToTable("ClubCategoryTags");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.ClubEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("AllowJuniors")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("BanStatus")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Category")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("ClubType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long?>("ClubhouseRoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("CreatorPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ImageName")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsRRO")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Joinability")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.UseCollation("NOCASE");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Visibility")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CreatorPlayerId");
|
|
|
|
b.HasIndex("Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Clubs");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.ClubMembershipEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("ClubId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("JoinedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Permissions")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId");
|
|
|
|
b.HasIndex("ClubId", "PlayerId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("ClubMemberships");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.ClubSubscriptionEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("ClubId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("SubscribedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClubId");
|
|
|
|
b.HasIndex("PlayerId", "ClubId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("ClubSubscriptions");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.CohortAssignmentEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("AssignedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CohortKey")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Variant")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId", "CohortKey")
|
|
.IsUnique();
|
|
|
|
b.ToTable("CohortAssignments");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.CommunityBoardEntity", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Json")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("CommunityBoardRows");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.CouponEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Code")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("ExpiresAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("MaxRedemptions")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RedemptionCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("RewardAmount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RewardCurrencyType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("RewardItemSlug")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("RewardType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Code")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Coupons");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.CouponRedemptionEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("CouponId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("RedeemedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CouponId", "PlayerId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("CouponRedemptions");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.CurrencyBalanceEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("Balance")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("CurrencyType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId", "CurrencyType")
|
|
.IsUnique();
|
|
|
|
b.ToTable("CurrencyBalances");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.DormStateEntity", b =>
|
|
{
|
|
b.Property<long>("PlayerId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CurrentDataBlobName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("PlayerId");
|
|
|
|
b.ToTable("DormStates");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.GameRewardSelectionEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("GiftContext")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Message")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RewardType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("SelectedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("SelectedGiftDropId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId", "SelectedAt");
|
|
|
|
b.ToTable("GameRewardSelections");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.GameSessionEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ActivityLevelId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("MaxCapacity")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("PhotonRoomName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("PlayerCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Region")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RoomId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoomId", "Region");
|
|
|
|
b.ToTable("GameSessions");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.GiftPackageEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("AvatarItemDescOrHairDyeDesc")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("AvatarItemType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ConsumableItemDesc")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Consumed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("ConsumedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Currency")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("CurrencyType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("EquipmentModificationGuid")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("EquipmentPrefabName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ErrorMessage")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("FromPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("GiftContext")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("GiftRarity")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsGifted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsValid")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Level")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Message")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PackageMaterial")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PackageVariant")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Platform")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("RecipientPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("SupportsCurrentPlatform")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Xp")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RecipientPlayerId", "Consumed");
|
|
|
|
b.ToTable("GiftPackages");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.InventionEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("CheerCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long?>("CreationRoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("CreatorPermission")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("CreatorPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("CurrentBlobName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("CurrentVersionNumber")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("FirstPublishedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("GeneralPermission")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ImageName")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsAgInvention")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsPublished")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("NumPlayersHaveUsedInRoom")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Permission")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ReplicationId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("SpawnCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("TagsCsv")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CheerCount");
|
|
|
|
b.HasIndex("CreatorPlayerId");
|
|
|
|
b.ToTable("Inventions");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.InventionVersionEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("BlobName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("InstantiationCost")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("InventionId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("LightsCost")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ReplicationId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("VersionNumber")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("InventionId", "VersionNumber")
|
|
.IsUnique();
|
|
|
|
b.ToTable("InventionVersions");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.IpBanEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("BannedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("BannedByAdminId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Cidr")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Reason")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("Until")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Cidr");
|
|
|
|
b.ToTable("IpBans");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.LeaderboardChannelMetaEntity", b =>
|
|
{
|
|
b.Property<int>("Channel")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("LowerIsBetter")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ValueFormat")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Channel");
|
|
|
|
b.HasIndex("RoomId");
|
|
|
|
b.ToTable("LeaderboardChannelMeta");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.LeaderboardStatEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("StatChannel")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("Value")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId", "StatChannel")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("StatChannel", "Value");
|
|
|
|
b.ToTable("LeaderboardStats");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.LoadingScreenTipEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Context")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ImageName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Message")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("PlatformMask")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("RoomNamesCsv")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("SortOrder")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("LoadingScreenTips");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.MessageEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Body")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("ReadAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("RecipientPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long?>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("SenderPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("SentAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RecipientPlayerId", "SentAt");
|
|
|
|
b.HasIndex("SenderPlayerId", "SentAt");
|
|
|
|
b.ToTable("Messages");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.NotificationPrefsEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("AllowAll")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("AllowAnnouncements")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("AllowEventInvite")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("AllowFriendRequest")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("AllowMessage")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Platform")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId", "Platform")
|
|
.IsUnique();
|
|
|
|
b.ToTable("NotificationPrefs");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.ObjectiveProgressEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("ClearedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsCompleted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId", "Key")
|
|
.IsUnique();
|
|
|
|
b.ToTable("ObjectiveProgress");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PhotoEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("BlobName")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Caption")
|
|
.IsRequired()
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("CheerCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("DeletedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsPublic")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("TaggedPlayerIdsCsv")
|
|
.IsRequired()
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("UploaderPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("ViewCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("BlobName");
|
|
|
|
b.HasIndex("CreatedAt");
|
|
|
|
b.HasIndex("RoomId");
|
|
|
|
b.HasIndex("UploaderPlayerId");
|
|
|
|
b.ToTable("Photos");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PlatformIgnoreEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Platform")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("PlatformUserId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId", "Platform", "PlatformUserId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("PlatformIgnores");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PlayerDeviceEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("DeviceId")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("FirstSeen")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsBanned")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("LastSeen")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Platform")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DeviceId");
|
|
|
|
b.HasIndex("PlayerId");
|
|
|
|
b.ToTable("PlayerDevices");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PlayerEloEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Elo")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("GameMode")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Losses")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("MatchesPlayed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Wins")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("GameMode", "Elo");
|
|
|
|
b.HasIndex("PlayerId", "GameMode")
|
|
.IsUnique();
|
|
|
|
b.ToTable("PlayerElo");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PlayerEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("BannedUntil")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Bio")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("Birthday")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("CanReceiveInvites")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CreatedFromDeviceId")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DeviceId")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsAdmin")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsCommunityTeam")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsDeveloper")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsJunior")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsVerified")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("LastIp")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("LastPlatform")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("LastPlatformId")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("LastSeenAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Level")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Locale")
|
|
.HasMaxLength(16)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PasswordHash")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Phone")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ProfileImageName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Reputation")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("XP")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Username")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Players");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PlayerEventEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Capacity")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("CreatorPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("EndsAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("StartsAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CreatorPlayerId");
|
|
|
|
b.HasIndex("StartsAt");
|
|
|
|
b.ToTable("PlayerEvents");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PlayerEventResponseEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("EventId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Response")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId");
|
|
|
|
b.HasIndex("EventId", "PlayerId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("PlayerEventResponses");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PlayerInventoryEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("AcquiredAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ItemSlug")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Quantity")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId");
|
|
|
|
b.HasIndex("PlayerId", "ItemSlug")
|
|
.IsUnique();
|
|
|
|
b.ToTable("PlayerInventory");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PlayerSettingEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId", "Key")
|
|
.IsUnique();
|
|
|
|
b.ToTable("PlayerSettings");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PlaylistEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("CheerCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("CreatorPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("FavoriteCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ImageName")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsCurated")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.UseCollation("NOCASE");
|
|
|
|
b.Property<int>("OrderIndex")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("TagsCsv")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("VisitCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VisitorCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CreatorPlayerId");
|
|
|
|
b.HasIndex("IsCurated");
|
|
|
|
b.HasIndex("Name");
|
|
|
|
b.ToTable("Playlists");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PlaylistInteractionEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Cheered")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Favorited")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlaylistId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId");
|
|
|
|
b.HasIndex("PlaylistId", "PlayerId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("PlaylistInteractions");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PlaylistRoomEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("OrderIndex")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlaylistId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlaylistId");
|
|
|
|
b.HasIndex("RoomId");
|
|
|
|
b.HasIndex("PlaylistId", "OrderIndex");
|
|
|
|
b.ToTable("PlaylistRooms");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PrivateInstanceEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DataBlob")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Location")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("MaxCapacity")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("OwnerPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("PhotonRegion")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PhotonRoomId")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("SubRoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("OwnerPlayerId");
|
|
|
|
b.HasIndex("RoomId", "SubRoomId");
|
|
|
|
b.ToTable("PrivateInstances");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PrivateInstanceInviteeEntity", b =>
|
|
{
|
|
b.Property<long>("PrivateInstanceId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("InvitedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long?>("LatestInviteMessageId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("PrivateInstanceId", "PlayerId");
|
|
|
|
b.HasIndex("PlayerId");
|
|
|
|
b.ToTable("PrivateInstanceInvitees");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PushTokenEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Platform")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Token")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Token");
|
|
|
|
b.HasIndex("PlayerId", "Platform")
|
|
.IsUnique();
|
|
|
|
b.ToTable("PushTokens");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.RelationshipEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Favorited")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Ignored")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Muted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("RequesterId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("TargetId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RequesterId", "TargetId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Relationships");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.ReportEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Category")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("GameSessionId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Message")
|
|
.IsRequired()
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("ReporterPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ResolutionNote")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("ResolvedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long?>("ResolverAdminId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("TargetEventId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("TargetInventionId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("TargetPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("TargetRoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ReporterPlayerId");
|
|
|
|
b.HasIndex("ResolvedAt");
|
|
|
|
b.HasIndex("TargetPlayerId");
|
|
|
|
b.ToTable("Reports");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.RoomBanEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("BanType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("BannedByPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("BannedPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Reason")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("Until")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("BannedPlayerId");
|
|
|
|
b.HasIndex("RoomId", "BannedPlayerId");
|
|
|
|
b.ToTable("RoomBans");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.RoomBookmarkEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId");
|
|
|
|
b.HasIndex("PlayerId", "RoomId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("RoomBookmarks");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.RoomDataBlobEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("BlobName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<byte[]>("Bytes")
|
|
.HasColumnType("BLOB");
|
|
|
|
b.Property<string>("ReferencedFilenamesCsv")
|
|
.IsRequired()
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long?>("SubRoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("UploadedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("UploadedByPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("BlobName")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("RoomId");
|
|
|
|
b.ToTable("RoomDataBlobs");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.RoomEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Accessibility")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("AllowsJuniors")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("CheerCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("CloningAllowed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("CreatorPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("CurrentDataBlobName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("CustomRoomWarning")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("DisableMicAutoMute")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("FavoriteCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("HiddenFromBrowse")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<double>("HotScore")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<string>("ImageName")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsAGRoom")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsDormRoom")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("LocationReplicationId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.UseCollation("NOCASE");
|
|
|
|
b.Property<int>("RoomWarningMask")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("SupportsLevelVoting")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("SupportsMobile")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("SupportsScreens")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("SupportsTeleportVR")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("SupportsVRLow")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("SupportsWalkVR")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("TagsCsv")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("VisitCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VisitorCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CreatorPlayerId");
|
|
|
|
b.HasIndex("HotScore");
|
|
|
|
b.HasIndex("Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Rooms");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.RoomKeyEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("CreatorPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(174)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Price")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ReplicationId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CreatorPlayerId");
|
|
|
|
b.HasIndex("RoomId");
|
|
|
|
b.HasIndex("RoomId", "Name");
|
|
|
|
b.ToTable("RoomKeys");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.RoomKeyPurchaseEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("PaidPrice")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("PurchasedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("RoomKeyId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId");
|
|
|
|
b.HasIndex("RoomKeyId", "PlayerId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("RoomKeyPurchases");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.RoomRoleEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Accepted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("GrantedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long?>("GrantedByPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Role")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoomId");
|
|
|
|
b.HasIndex("RoomId", "PlayerId", "Role")
|
|
.IsUnique();
|
|
|
|
b.ToTable("RoomRoles");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.RoomSceneEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("CanMatchmakeInto")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("DataBlobName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("DataModifiedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsSandbox")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("MaxPlayers")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT")
|
|
.UseCollation("NOCASE");
|
|
|
|
b.Property<int>("OrderIndex")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("RoomSceneLocationId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoomId", "Name");
|
|
|
|
b.HasIndex("RoomId", "OrderIndex")
|
|
.IsUnique();
|
|
|
|
b.ToTable("RoomScenes");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.RoomVisitEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("FirstVisitAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("LastVisitAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VisitCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId");
|
|
|
|
b.HasIndex("RoomId", "LastVisitAt");
|
|
|
|
b.HasIndex("RoomId", "PlayerId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("RoomVisits");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.RoyaleMatchEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("ChestsOpened")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CompletedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("CustomGame")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("HealthPotionsConsumed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("NumEliminations")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Rank")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("SecondsAlive")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("SecondsInAir")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("ShieldPotionsConsumed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("WalkGame")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CompletedAt");
|
|
|
|
b.ToTable("RoyaleMatches");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.RoyaleMatchPlayerEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("MatchId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("NumEliminations")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Rank")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("SecondsAlive")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId");
|
|
|
|
b.HasIndex("MatchId", "PlayerId");
|
|
|
|
b.ToTable("RoyaleMatchPlayers");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.RoyalePlayerProgressEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("CurrentLevelXPThreshold")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Level")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("NextLevelAcornReward")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("NextLevelXPThreshold")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("PlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RankIdx")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("RankName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("TotalXP")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PlayerId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("RoyalePlayerProgress");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.ServerSettingsEntity", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("SignupsDisabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("WeeklyChallengeRewardJson")
|
|
.IsRequired()
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT")
|
|
.HasDefaultValue("");
|
|
|
|
b.Property<bool>("WeeklyChallengesCompletedRequired")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasDefaultValue(true);
|
|
|
|
b.Property<string>("WeeklyChallengesJson")
|
|
.IsRequired()
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT")
|
|
.HasDefaultValue("");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("ServerSettings");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.StoreItemEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("AvailableUntil")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Category")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("CurrencyType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ImageName")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsLimitedTime")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("Price")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Slug")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Storefront")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Slug")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("Storefront");
|
|
|
|
b.HasIndex("IsActive", "Category");
|
|
|
|
b.ToTable("StoreItems");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.SubscriptionEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("SubscriberPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<long>("TargetPlayerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SubscriberPlayerId");
|
|
|
|
b.HasIndex("TargetPlayerId");
|
|
|
|
b.HasIndex("SubscriberPlayerId", "TargetPlayerId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Subscriptions");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.TestCaseEntity", b =>
|
|
{
|
|
b.Property<long>("Pk")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("AssignedPlayerIdsJson")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AssignedPlayerNamesJson")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("JiraBugUrl")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("JiraUrl")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("MinNumAssignedPlayers")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("RoomName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("TagsJson")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<uint?>("TestPassId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Pk");
|
|
|
|
b.HasIndex("Id")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("Status");
|
|
|
|
b.HasIndex("TestPassId");
|
|
|
|
b.ToTable("TestCases");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.TestPassEntity", b =>
|
|
{
|
|
b.Property<uint>("Id")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("EndDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("StartDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TagsJson")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("WasManuallyClosed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("TestPasses");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.AvatarEntity", b =>
|
|
{
|
|
b.HasOne("DorkNet.Server.Data.Entities.PlayerEntity", "Player")
|
|
.WithOne("Avatar")
|
|
.HasForeignKey("DorkNet.Server.Data.Entities.AvatarEntity", "PlayerId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Player");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PlayerSettingEntity", b =>
|
|
{
|
|
b.HasOne("DorkNet.Server.Data.Entities.PlayerEntity", "Player")
|
|
.WithMany("Settings")
|
|
.HasForeignKey("PlayerId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Player");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.RelationshipEntity", b =>
|
|
{
|
|
b.HasOne("DorkNet.Server.Data.Entities.PlayerEntity", "Requester")
|
|
.WithMany("Relationships")
|
|
.HasForeignKey("RequesterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Requester");
|
|
});
|
|
|
|
modelBuilder.Entity("DorkNet.Server.Data.Entities.PlayerEntity", b =>
|
|
{
|
|
b.Navigation("Avatar");
|
|
|
|
b.Navigation("Relationships");
|
|
|
|
b.Navigation("Settings");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|