// 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("20260508164300_Phase8AccountPassword")] partial class Phase8AccountPassword { /// 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("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Action") .IsRequired() .HasMaxLength(64) .HasColumnType("TEXT"); b.Property("AdminPlayerId") .HasColumnType("INTEGER"); b.Property("Reason") .IsRequired() .HasMaxLength(512) .HasColumnType("TEXT"); b.Property("TargetId") .HasColumnType("INTEGER"); b.Property("TargetType") .IsRequired() .HasMaxLength(32) .HasColumnType("TEXT"); b.Property("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("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("EquippedItemsJson") .IsRequired() .HasColumnType("TEXT"); b.Property("FaceFeatures") .IsRequired() .HasMaxLength(8192) .HasColumnType("TEXT"); b.Property("HairColor") .IsRequired() .HasMaxLength(64) .HasColumnType("TEXT"); b.Property("InventoryJson") .IsRequired() .HasColumnType("TEXT"); b.Property("OutfitSelections") .IsRequired() .HasMaxLength(2048) .HasColumnType("TEXT"); b.Property("PlayerId") .HasColumnType("INTEGER"); b.Property("SavedOutfitsJson") .IsRequired() .HasColumnType("TEXT"); b.Property("SkinColor") .IsRequired() .HasMaxLength(64) .HasColumnType("TEXT"); b.Property("UpdatedAt") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("PlayerId") .IsUnique(); b.ToTable("Avatars"); }); modelBuilder.Entity("DorkNet.Server.Data.Entities.DormStateEntity", b => { b.Property("PlayerId") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("CurrentDataBlobName") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("UpdatedAt") .HasColumnType("TEXT"); b.HasKey("PlayerId"); b.ToTable("DormStates"); }); modelBuilder.Entity("DorkNet.Server.Data.Entities.InventionEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("CheerCount") .HasColumnType("INTEGER"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("CreatorPlayerId") .HasColumnType("INTEGER"); b.Property("CurrentBlobName") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Description") .IsRequired() .HasMaxLength(2000) .HasColumnType("TEXT"); b.Property("ImageName") .IsRequired() .HasMaxLength(256) .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Permission") .HasColumnType("INTEGER"); b.Property("SpawnCount") .HasColumnType("INTEGER"); b.Property("TagsCsv") .IsRequired() .HasMaxLength(1024) .HasColumnType("TEXT"); b.Property("UpdatedAt") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("CheerCount"); b.HasIndex("CreatorPlayerId"); b.ToTable("Inventions"); }); modelBuilder.Entity("DorkNet.Server.Data.Entities.PlayerEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("BannedUntil") .HasColumnType("TEXT"); b.Property("Bio") .IsRequired() .HasMaxLength(512) .HasColumnType("TEXT"); b.Property("Birthday") .HasColumnType("TEXT"); b.Property("CanReceiveInvites") .HasColumnType("INTEGER"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("CreatedFromDeviceId") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("DeviceId") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("DisplayName") .IsRequired() .HasMaxLength(64) .HasColumnType("TEXT"); b.Property("Email") .HasMaxLength(256) .HasColumnType("TEXT"); b.Property("IsAdmin") .HasColumnType("INTEGER"); b.Property("IsDeveloper") .HasColumnType("INTEGER"); b.Property("IsJunior") .HasColumnType("INTEGER"); b.Property("IsVerified") .HasColumnType("INTEGER"); b.Property("LastIp") .HasMaxLength(64) .HasColumnType("TEXT"); b.Property("LastPlatform") .HasColumnType("INTEGER"); b.Property("LastPlatformId") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("LastSeenAt") .HasColumnType("TEXT"); b.Property("Level") .HasColumnType("INTEGER"); b.Property("Locale") .HasMaxLength(16) .HasColumnType("TEXT"); b.Property("PasswordHash") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Phone") .HasMaxLength(32) .HasColumnType("TEXT"); b.Property("ProfileImageName") .HasMaxLength(256) .HasColumnType("TEXT"); b.Property("Reputation") .HasColumnType("INTEGER"); b.Property("Username") .IsRequired() .HasMaxLength(64) .HasColumnType("TEXT"); b.Property("XP") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("Username") .IsUnique(); b.ToTable("Players"); }); modelBuilder.Entity("DorkNet.Server.Data.Entities.PlayerSettingEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Key") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("PlayerId") .HasColumnType("INTEGER"); b.Property("Value") .IsRequired() .HasMaxLength(1024) .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("PlayerId", "Key") .IsUnique(); b.ToTable("PlayerSettings"); }); modelBuilder.Entity("DorkNet.Server.Data.Entities.RelationshipEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("RequesterId") .HasColumnType("INTEGER"); b.Property("Status") .HasColumnType("INTEGER"); b.Property("TargetId") .HasColumnType("INTEGER"); b.Property("UpdatedAt") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("RequesterId", "TargetId") .IsUnique(); b.ToTable("Relationships"); }); modelBuilder.Entity("DorkNet.Server.Data.Entities.RoomBookmarkEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("PlayerId") .HasColumnType("INTEGER"); b.Property("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("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("BlobName") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Bytes") .IsRequired() .HasColumnType("BLOB"); b.Property("ReferencedFilenamesCsv") .IsRequired() .HasMaxLength(2048) .HasColumnType("TEXT"); b.Property("RoomId") .HasColumnType("INTEGER"); b.Property("UploadedAt") .HasColumnType("TEXT"); b.Property("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("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Accessibility") .HasColumnType("INTEGER"); b.Property("AllowsJuniors") .HasColumnType("INTEGER"); b.Property("CheerCount") .HasColumnType("INTEGER"); b.Property("CloningAllowed") .HasColumnType("INTEGER"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("CreatorPlayerId") .HasColumnType("INTEGER"); b.Property("CurrentDataBlobName") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("CustomRoomWarning") .IsRequired() .HasMaxLength(512) .HasColumnType("TEXT"); b.Property("Description") .IsRequired() .HasMaxLength(2000) .HasColumnType("TEXT"); b.Property("DisableMicAutoMute") .HasColumnType("INTEGER"); b.Property("FavoriteCount") .HasColumnType("INTEGER"); b.Property("HotScore") .HasColumnType("REAL"); b.Property("ImageName") .IsRequired() .HasMaxLength(256) .HasColumnType("TEXT"); b.Property("IsAGRoom") .HasColumnType("INTEGER"); b.Property("IsDormRoom") .HasColumnType("INTEGER"); b.Property("LocationReplicationId") .IsRequired() .HasMaxLength(64) .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT") .UseCollation("NOCASE"); b.Property("RoomWarningMask") .HasColumnType("INTEGER"); b.Property("State") .HasColumnType("INTEGER"); b.Property("SupportsLevelVoting") .HasColumnType("INTEGER"); b.Property("SupportsMobile") .HasColumnType("INTEGER"); b.Property("SupportsScreens") .HasColumnType("INTEGER"); b.Property("SupportsTeleportVR") .HasColumnType("INTEGER"); b.Property("SupportsVRLow") .HasColumnType("INTEGER"); b.Property("SupportsWalkVR") .HasColumnType("INTEGER"); b.Property("TagsCsv") .IsRequired() .HasMaxLength(1024) .HasColumnType("TEXT"); b.Property("UpdatedAt") .HasColumnType("TEXT"); b.Property("VisitCount") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("CreatorPlayerId"); b.HasIndex("HotScore"); b.HasIndex("Name") .IsUnique(); b.ToTable("Rooms"); }); 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 } } }