// using Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace Data.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20250825173042_InitialCreate")] partial class InitialCreate { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "9.0.8"); modelBuilder.Entity("Core.Entities.EventDefinition", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Description") .HasColumnType("TEXT"); b.Property("Documentation") .HasColumnType("TEXT"); b.Property("Eligibility") .IsRequired() .HasColumnType("TEXT"); b.Property("EventFormat") .HasColumnType("INTEGER"); b.Property("LevelOfEffort") .HasColumnType("INTEGER"); b.Property("MaxTeamCountState") .HasColumnType("INTEGER"); b.Property("MaxTeamSize") .HasColumnType("INTEGER"); b.Property("MinTeamSize") .HasColumnType("INTEGER"); b.Property("Name") .IsRequired() .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Notes") .HasColumnType("TEXT"); b.Property("RegionalEvent") .HasColumnType("INTEGER"); b.Property("RegionalPresubmit") .HasColumnType("INTEGER"); b.Property("SemifinalistActivity") .HasColumnType("TEXT"); b.Property("ShortName") .HasColumnType("TEXT"); b.Property("StatePreliminaryRound") .HasColumnType("INTEGER"); b.Property("StatePresubmission") .HasColumnType("INTEGER"); b.Property("StatePretesting") .HasColumnType("INTEGER"); b.Property("Theme") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("Name"); b.ToTable("Events"); }); modelBuilder.Entity("Core.Entities.Student", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Students"); }); modelBuilder.Entity("Core.Entities.Team", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("CaptainId") .HasColumnType("INTEGER"); b.Property("TeamNumber") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("CaptainId"); b.ToTable("Teams"); }); modelBuilder.Entity("StudentTeam", b => { b.Property("StudentsId") .HasColumnType("INTEGER"); b.Property("TeamsId") .HasColumnType("INTEGER"); b.HasKey("StudentsId", "TeamsId"); b.HasIndex("TeamsId"); b.ToTable("StudentTeam"); }); modelBuilder.Entity("Core.Entities.Team", b => { b.HasOne("Core.Entities.Student", "Captain") .WithMany() .HasForeignKey("CaptainId"); b.Navigation("Captain"); }); modelBuilder.Entity("StudentTeam", b => { b.HasOne("Core.Entities.Student", null) .WithMany() .HasForeignKey("StudentsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Core.Entities.Team", null) .WithMany() .HasForeignKey("TeamsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); #pragma warning restore 612, 618 } } }