// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Server.Data; #nullable disable namespace Server.Migrations { [DbContext(typeof(ServerDbContext))] partial class ServerDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "6.0.6"); modelBuilder.Entity("DatabaseModels.Plain.ScoreboardRecord", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("PostTime") .HasColumnType("TEXT"); b.Property("Score") .HasColumnType("INTEGER"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("Scoreboard"); }); modelBuilder.Entity("DatabaseModels.Plain.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("PasswordHash") .IsRequired() .HasColumnType("TEXT"); b.Property("PasswordSalt") .IsRequired() .HasColumnType("TEXT"); b.Property("Username") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Users"); }); modelBuilder.Entity("DatabaseModels.Plain.ScoreboardRecord", b => { b.HasOne("DatabaseModels.Plain.User", "User") .WithMany("ScoreboardRecords") .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("User"); }); modelBuilder.Entity("DatabaseModels.Plain.User", b => { b.Navigation("ScoreboardRecords"); }); #pragma warning restore 612, 618 } } }