using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PowderCoating.Infrastructure.Migrations { /// public partial class AddComplexityFields : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "Complexity", table: "QuoteItems", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "Complexity", table: "JobItems", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "ComplexityComplexPercent", table: "CompanyOperatingCosts", type: "decimal(18,2)", nullable: false, defaultValue: 0m); migrationBuilder.AddColumn( name: "ComplexityExtremePercent", table: "CompanyOperatingCosts", type: "decimal(18,2)", nullable: false, defaultValue: 0m); migrationBuilder.AddColumn( name: "ComplexityModeratePercent", table: "CompanyOperatingCosts", type: "decimal(18,2)", nullable: false, defaultValue: 0m); migrationBuilder.AddColumn( name: "ComplexitySimplePercent", table: "CompanyOperatingCosts", type: "decimal(18,2)", nullable: false, defaultValue: 0m); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 3, 9, 19, 44, 57, 114, DateTimeKind.Utc).AddTicks(3134)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 3, 9, 19, 44, 57, 114, DateTimeKind.Utc).AddTicks(3138)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 3, 9, 19, 44, 57, 114, DateTimeKind.Utc).AddTicks(3140)); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Complexity", table: "QuoteItems"); migrationBuilder.DropColumn( name: "Complexity", table: "JobItems"); migrationBuilder.DropColumn( name: "ComplexityComplexPercent", table: "CompanyOperatingCosts"); migrationBuilder.DropColumn( name: "ComplexityExtremePercent", table: "CompanyOperatingCosts"); migrationBuilder.DropColumn( name: "ComplexityModeratePercent", table: "CompanyOperatingCosts"); migrationBuilder.DropColumn( name: "ComplexitySimplePercent", table: "CompanyOperatingCosts"); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 3, 9, 13, 48, 42, 538, DateTimeKind.Utc).AddTicks(4960)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 3, 9, 13, 48, 42, 538, DateTimeKind.Utc).AddTicks(4969)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 3, 9, 13, 48, 42, 538, DateTimeKind.Utc).AddTicks(4970)); } } }