using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PowderCoating.Infrastructure.Migrations { /// public partial class AddQuoteDepositPaymentFields : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "DepositAmountPaid", table: "Quotes", type: "decimal(18,2)", nullable: false, defaultValue: 0m); migrationBuilder.AddColumn( name: "DepositPaymentIntentId", table: "Quotes", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "DepositPaymentLinkExpiresAt", table: "Quotes", type: "datetime2", nullable: true); migrationBuilder.AddColumn( name: "DepositPaymentLinkToken", table: "Quotes", type: "nvarchar(max)", nullable: true); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 4, 1, 12, 56, 27, 180, DateTimeKind.Utc).AddTicks(8248)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 4, 1, 12, 56, 27, 180, DateTimeKind.Utc).AddTicks(8254)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 4, 1, 12, 56, 27, 180, DateTimeKind.Utc).AddTicks(8255)); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "DepositAmountPaid", table: "Quotes"); migrationBuilder.DropColumn( name: "DepositPaymentIntentId", table: "Quotes"); migrationBuilder.DropColumn( name: "DepositPaymentLinkExpiresAt", table: "Quotes"); migrationBuilder.DropColumn( name: "DepositPaymentLinkToken", table: "Quotes"); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 3, 30, 23, 40, 30, 148, DateTimeKind.Utc).AddTicks(3162)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 3, 30, 23, 40, 30, 148, DateTimeKind.Utc).AddTicks(3168)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 3, 30, 23, 40, 30, 148, DateTimeKind.Utc).AddTicks(3170)); } } }