using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PowderCoating.Infrastructure.Migrations { /// public partial class AddTaxExemptionToCustomer : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "IsTaxExempt", table: "Customers", type: "bit", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "TaxExemptCertificateContentType", table: "Customers", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "TaxExemptCertificateData", table: "Customers", type: "varbinary(max)", nullable: true); migrationBuilder.AddColumn( name: "TaxExemptCertificateFileName", table: "Customers", type: "nvarchar(max)", nullable: true); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 2, 8, 22, 44, 23, 99, DateTimeKind.Utc).AddTicks(2986)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 2, 8, 22, 44, 23, 99, DateTimeKind.Utc).AddTicks(2993)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 2, 8, 22, 44, 23, 99, DateTimeKind.Utc).AddTicks(2995)); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "IsTaxExempt", table: "Customers"); migrationBuilder.DropColumn( name: "TaxExemptCertificateContentType", table: "Customers"); migrationBuilder.DropColumn( name: "TaxExemptCertificateData", table: "Customers"); migrationBuilder.DropColumn( name: "TaxExemptCertificateFileName", table: "Customers"); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 2, 8, 18, 14, 35, 849, DateTimeKind.Utc).AddTicks(3756)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 2, 8, 18, 14, 35, 849, DateTimeKind.Utc).AddTicks(3760)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 2, 8, 18, 14, 35, 849, DateTimeKind.Utc).AddTicks(3762)); } } }