using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PowderCoating.Infrastructure.Migrations { /// public partial class AddSupplierEnhancements : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "AccountNumber", table: "Suppliers", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "CreditLimit", table: "Suppliers", type: "decimal(18,2)", nullable: true); migrationBuilder.AddColumn( name: "IsPreferred", table: "Suppliers", type: "bit", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "PaymentTerms", table: "Suppliers", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "TaxId", table: "Suppliers", type: "nvarchar(max)", nullable: true); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 2, 13, 16, 25, 10, 85, DateTimeKind.Utc).AddTicks(5660)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 2, 13, 16, 25, 10, 85, DateTimeKind.Utc).AddTicks(5668)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 2, 13, 16, 25, 10, 85, DateTimeKind.Utc).AddTicks(5669)); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "AccountNumber", table: "Suppliers"); migrationBuilder.DropColumn( name: "CreditLimit", table: "Suppliers"); migrationBuilder.DropColumn( name: "IsPreferred", table: "Suppliers"); migrationBuilder.DropColumn( name: "PaymentTerms", table: "Suppliers"); migrationBuilder.DropColumn( name: "TaxId", table: "Suppliers"); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 2, 13, 13, 50, 54, 482, DateTimeKind.Utc).AddTicks(7815)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 2, 13, 13, 50, 54, 482, DateTimeKind.Utc).AddTicks(7821)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 2, 13, 13, 50, 54, 482, DateTimeKind.Utc).AddTicks(7822)); } } }