using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PowderCoating.Infrastructure.Migrations { /// public partial class AddSalesItemFields : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "IsSalesItem", table: "QuoteItems", type: "bit", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "Sku", table: "QuoteItems", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "IsSalesItem", table: "JobItems", type: "bit", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "Sku", table: "JobItems", type: "nvarchar(max)", nullable: true); 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)); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "IsSalesItem", table: "QuoteItems"); migrationBuilder.DropColumn( name: "Sku", table: "QuoteItems"); migrationBuilder.DropColumn( name: "IsSalesItem", table: "JobItems"); migrationBuilder.DropColumn( name: "Sku", table: "JobItems"); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 3, 29, 14, 11, 34, 230, DateTimeKind.Utc).AddTicks(5437)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 3, 29, 14, 11, 34, 230, DateTimeKind.Utc).AddTicks(5443)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 3, 29, 14, 11, 34, 230, DateTimeKind.Utc).AddTicks(5445)); } } }