using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PowderCoating.Infrastructure.Migrations { /// public partial class AddPendingRegistrationSession : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "PendingRegistrationSessions", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), Token = table.Column(type: "nvarchar(max)", nullable: false), CompanyName = table.Column(type: "nvarchar(max)", nullable: false), CompanyPhone = table.Column(type: "nvarchar(max)", nullable: true), FirstName = table.Column(type: "nvarchar(max)", nullable: false), LastName = table.Column(type: "nvarchar(max)", nullable: false), Email = table.Column(type: "nvarchar(max)", nullable: false), Plan = table.Column(type: "int", nullable: false), IsAnnual = table.Column(type: "bit", nullable: false), CreatedAt = table.Column(type: "datetime2", nullable: false), IsCompleted = table.Column(type: "bit", nullable: false) }, constraints: table => { table.PrimaryKey("PK_PendingRegistrationSessions", x => x.Id); }); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 4, 14, 13, 58, 7, 91, DateTimeKind.Utc).AddTicks(6607)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 4, 14, 13, 58, 7, 91, DateTimeKind.Utc).AddTicks(6613)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 4, 14, 13, 58, 7, 91, DateTimeKind.Utc).AddTicks(6614)); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "PendingRegistrationSessions"); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 4, 12, 18, 34, 8, 909, DateTimeKind.Utc).AddTicks(3047)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 4, 12, 18, 34, 8, 909, DateTimeKind.Utc).AddTicks(3054)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 4, 12, 18, 34, 8, 909, DateTimeKind.Utc).AddTicks(3055)); } } }