diff --git a/Data/Migrations/20250825173042_InitialCreate.cs b/Data/Migrations/20250825173042_InitialCreate.cs index 862c99f..6f20f30 100644 --- a/Data/Migrations/20250825173042_InitialCreate.cs +++ b/Data/Migrations/20250825173042_InitialCreate.cs @@ -54,7 +54,7 @@ namespace Data.Migrations }); migrationBuilder.CreateTable( - name: "TimeSlots", + name: "Teams", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) @@ -91,7 +91,7 @@ namespace Data.Migrations table.ForeignKey( name: "FK_StudentTeam_Teams_TeamsId", column: x => x.TeamsId, - principalTable: "TimeSlots", + principalTable: "Teams", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); @@ -108,7 +108,7 @@ namespace Data.Migrations migrationBuilder.CreateIndex( name: "IX_Teams_CaptainId", - table: "TimeSlots", + table: "Teams", column: "CaptainId"); } @@ -122,7 +122,7 @@ namespace Data.Migrations name: "StudentTeam"); migrationBuilder.DropTable( - name: "TimeSlots"); + name: "Teams"); migrationBuilder.DropTable( name: "Students"); diff --git a/Data/Migrations/20250827183503_StudentCleanup.cs b/Data/Migrations/20250827183503_StudentCleanup.cs index a112a89..f30f9e9 100644 --- a/Data/Migrations/20250827183503_StudentCleanup.cs +++ b/Data/Migrations/20250827183503_StudentCleanup.cs @@ -12,7 +12,7 @@ namespace Data.Migrations { migrationBuilder.RenameColumn( name: "TeamNumber", - table: "TimeSlots", + table: "Teams", newName: "TeamId"); migrationBuilder.RenameColumn( @@ -36,7 +36,7 @@ namespace Data.Migrations { migrationBuilder.RenameColumn( name: "TeamId", - table: "TimeSlots", + table: "Teams", newName: "TeamNumber"); migrationBuilder.RenameColumn( diff --git a/Data/Migrations/20250903121202_StudentAddEmailPhone.cs b/Data/Migrations/20250903121202_StudentAddEmailPhone.cs index 400b8fd..b354b2d 100644 --- a/Data/Migrations/20250903121202_StudentAddEmailPhone.cs +++ b/Data/Migrations/20250903121202_StudentAddEmailPhone.cs @@ -12,14 +12,14 @@ namespace Data.Migrations { migrationBuilder.AddColumn( name: "EventId", - table: "TimeSlots", + table: "Teams", type: "INTEGER", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "Name", - table: "TimeSlots", + table: "Teams", type: "TEXT", nullable: false, defaultValue: ""); @@ -47,12 +47,12 @@ namespace Data.Migrations migrationBuilder.CreateIndex( name: "IX_Teams_EventId", - table: "TimeSlots", + table: "Teams", column: "EventId"); migrationBuilder.AddForeignKey( name: "FK_Teams_Events_EventId", - table: "TimeSlots", + table: "Teams", column: "EventId", principalTable: "Events", principalColumn: "Id", @@ -64,19 +64,19 @@ namespace Data.Migrations { migrationBuilder.DropForeignKey( name: "FK_Teams_Events_EventId", - table: "TimeSlots"); + table: "Teams"); migrationBuilder.DropIndex( name: "IX_Teams_EventId", - table: "TimeSlots"); + table: "Teams"); migrationBuilder.DropColumn( name: "EventId", - table: "TimeSlots"); + table: "Teams"); migrationBuilder.DropColumn( name: "Name", - table: "TimeSlots"); + table: "Teams"); migrationBuilder.DropColumn( name: "Email", diff --git a/Data/Migrations/20250915175030_AddTeamNumber.cs b/Data/Migrations/20250915175030_AddTeamNumber.cs index 8aa8ebc..3fa3f49 100644 --- a/Data/Migrations/20250915175030_AddTeamNumber.cs +++ b/Data/Migrations/20250915175030_AddTeamNumber.cs @@ -12,11 +12,11 @@ namespace Data.Migrations { migrationBuilder.DropColumn( name: "Name", - table: "TimeSlots"); + table: "Teams"); migrationBuilder.AddColumn( name: "Number", - table: "TimeSlots", + table: "Teams", type: "INTEGER", nullable: false, defaultValue: 0); @@ -27,11 +27,11 @@ namespace Data.Migrations { migrationBuilder.DropColumn( name: "Number", - table: "TimeSlots"); + table: "Teams"); migrationBuilder.AddColumn( name: "Name", - table: "TimeSlots", + table: "Teams", type: "TEXT", nullable: false, defaultValue: ""); diff --git a/Data/Migrations/20250917165027_NullableTeamNumber.cs b/Data/Migrations/20250917165027_NullableTeamNumber.cs index ba40250..fa6189d 100644 --- a/Data/Migrations/20250917165027_NullableTeamNumber.cs +++ b/Data/Migrations/20250917165027_NullableTeamNumber.cs @@ -12,7 +12,7 @@ namespace Data.Migrations { migrationBuilder.AlterColumn( name: "Number", - table: "TimeSlots", + table: "Teams", type: "INTEGER", nullable: true, oldClrType: typeof(int), @@ -24,7 +24,7 @@ namespace Data.Migrations { migrationBuilder.AlterColumn( name: "Number", - table: "TimeSlots", + table: "Teams", type: "INTEGER", nullable: false, defaultValue: 0, diff --git a/Data/Migrations/AppDbContextModelSnapshot.cs b/Data/Migrations/AppDbContextModelSnapshot.cs index f303890..1c45505 100644 --- a/Data/Migrations/AppDbContextModelSnapshot.cs +++ b/Data/Migrations/AppDbContextModelSnapshot.cs @@ -83,7 +83,7 @@ namespace Data.Migrations b.HasIndex("Name"); - b.ToTable("Events"); + b.ToTable("Events", (string)null); }); modelBuilder.Entity("Core.Entities.Student", b => @@ -128,7 +128,7 @@ namespace Data.Migrations b.HasKey("Id"); - b.ToTable("Students"); + b.ToTable("Students", (string)null); }); modelBuilder.Entity("Core.Entities.StudentEventRanking", b => @@ -146,7 +146,7 @@ namespace Data.Migrations b.HasIndex("StudentId"); - b.ToTable("StudentEventRanking"); + b.ToTable("StudentEventRanking", (string)null); }); modelBuilder.Entity("Core.Entities.Team", b => @@ -173,7 +173,7 @@ namespace Data.Migrations b.HasIndex("EventId"); - b.ToTable("TimeSlots"); + b.ToTable("Teams", (string)null); }); modelBuilder.Entity("StudentTeam", b => @@ -188,7 +188,7 @@ namespace Data.Migrations b.HasIndex("TeamsId"); - b.ToTable("StudentTeam"); + b.ToTable("StudentTeam", (string)null); }); modelBuilder.Entity("Core.Entities.StudentEventRanking", b =>