// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using DorkNet.Server.Data; #nullable disable namespace DorkNet.Server.Migrations { [DbContext(typeof(DorkNetDbContext))] [Migration("20260508092637_Initial")] partial class Initial { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "9.0.4"); modelBuilder.Entity("DorkNet.Server.Data.Entities.AvatarEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("EquippedItemsJson") .IsRequired() .HasColumnType("TEXT"); b.Property("InventoryJson") .IsRequired() .HasColumnType("TEXT"); b.Property("PlayerId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("PlayerId") .IsUnique(); b.ToTable("Avatars"); }); modelBuilder.Entity("DorkNet.Server.Data.Entities.PlayerEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Bio") .IsRequired() .HasMaxLength(512) .HasColumnType("TEXT"); b.Property("CanReceiveInvites") .HasColumnType("INTEGER"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("DeviceId") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("DisplayName") .IsRequired() .HasMaxLength(64) .HasColumnType("TEXT"); b.Property("IsDeveloper") .HasColumnType("INTEGER"); b.Property("IsJunior") .HasColumnType("INTEGER"); b.Property("IsVerified") .HasColumnType("INTEGER"); 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("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.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.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("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 } } }