using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PowderCoating.Infrastructure.Migrations { /// public partial class AddSmsConsent : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "SmsConsentMethod", table: "Customers", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "SmsConsentedAt", table: "Customers", type: "datetime2", nullable: true); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 2, 21, 23, 29, 14, 219, DateTimeKind.Utc).AddTicks(9767)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 2, 21, 23, 29, 14, 219, DateTimeKind.Utc).AddTicks(9772)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 2, 21, 23, 29, 14, 219, DateTimeKind.Utc).AddTicks(9774)); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "SmsConsentMethod", table: "Customers"); migrationBuilder.DropColumn( name: "SmsConsentedAt", table: "Customers"); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 2, 21, 14, 18, 31, 332, DateTimeKind.Utc).AddTicks(1750)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 2, 21, 14, 18, 31, 332, DateTimeKind.Utc).AddTicks(1756)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 2, 21, 14, 18, 31, 332, DateTimeKind.Utc).AddTicks(1758)); } } }