using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable #pragma warning disable CA1814 // Prefer jagged arrays over multidimensional namespace GreadyPoang.DataLayer.Migrations { /// public partial class GamePointsTable : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "GamePoints", columns: table => new { GamePointId = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), ParticipantId = table.Column(type: "INTEGER", nullable: false), GameHeatId = table.Column(type: "INTEGER", nullable: false), GameDate = table.Column(type: "TEXT", nullable: false), GameHeatRegNr = table.Column(type: "INTEGER", nullable: false), GameRegPoints = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { table.PrimaryKey("PK_GamePoints", x => x.GamePointId); }); migrationBuilder.InsertData( table: "GamePoints", columns: new[] { "GamePointId", "GameDate", "GameHeatId", "GameHeatRegNr", "GameRegPoints", "ParticipantId" }, values: new object[,] { { 1, new DateTime(2025, 9, 2, 13, 56, 59, 539, DateTimeKind.Local).AddTicks(8341), 0, 1, 1050, 1 }, { 2, new DateTime(2025, 9, 2, 13, 56, 59, 539, DateTimeKind.Local).AddTicks(8923), 0, 3, 350, 1 }, { 3, new DateTime(2025, 9, 2, 13, 56, 59, 539, DateTimeKind.Local).AddTicks(8927), 0, 2, 1000, 3 }, { 4, new DateTime(2025, 9, 2, 13, 56, 59, 539, DateTimeKind.Local).AddTicks(8929), 0, 4, 400, 3 } }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "GamePoints"); } } }