using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PowderCoating.Infrastructure.Migrations { /// public partial class UpdateQuoteForProspects : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "CustomerId", table: "Quotes", type: "int", nullable: true, oldClrType: typeof(int), oldType: "int"); migrationBuilder.AddColumn( name: "ProspectAddress", table: "Quotes", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "ProspectCity", table: "Quotes", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "ProspectCompanyName", table: "Quotes", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "ProspectContactName", table: "Quotes", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "ProspectEmail", table: "Quotes", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "ProspectPhone", table: "Quotes", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "ProspectState", table: "Quotes", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "ProspectZipCode", table: "Quotes", type: "nvarchar(max)", nullable: true); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 2, 7, 3, 42, 43, 279, DateTimeKind.Utc).AddTicks(4915)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 2, 7, 3, 42, 43, 279, DateTimeKind.Utc).AddTicks(4919)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 2, 7, 3, 42, 43, 279, DateTimeKind.Utc).AddTicks(4921)); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "ProspectAddress", table: "Quotes"); migrationBuilder.DropColumn( name: "ProspectCity", table: "Quotes"); migrationBuilder.DropColumn( name: "ProspectCompanyName", table: "Quotes"); migrationBuilder.DropColumn( name: "ProspectContactName", table: "Quotes"); migrationBuilder.DropColumn( name: "ProspectEmail", table: "Quotes"); migrationBuilder.DropColumn( name: "ProspectPhone", table: "Quotes"); migrationBuilder.DropColumn( name: "ProspectState", table: "Quotes"); migrationBuilder.DropColumn( name: "ProspectZipCode", table: "Quotes"); migrationBuilder.AlterColumn( name: "CustomerId", table: "Quotes", type: "int", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "int", oldNullable: true); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 2, 6, 21, 35, 23, 258, DateTimeKind.Utc).AddTicks(1715)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 2, 6, 21, 35, 23, 258, DateTimeKind.Utc).AddTicks(1722)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 2, 6, 21, 35, 23, 258, DateTimeKind.Utc).AddTicks(1724)); } } }