using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PowderCoating.Infrastructure.Migrations { /// public partial class AddInventoryTransactionJobId : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "JobId", table: "InventoryTransactions", type: "int", nullable: true); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 4, 17, 4, 42, 51, 151, DateTimeKind.Utc).AddTicks(259)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 4, 17, 4, 42, 51, 151, DateTimeKind.Utc).AddTicks(266)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 4, 17, 4, 42, 51, 151, DateTimeKind.Utc).AddTicks(268)); migrationBuilder.CreateIndex( name: "IX_InventoryTransactions_JobId", table: "InventoryTransactions", column: "JobId"); migrationBuilder.AddForeignKey( name: "FK_InventoryTransactions_Jobs_JobId", table: "InventoryTransactions", column: "JobId", principalTable: "Jobs", principalColumn: "Id"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_InventoryTransactions_Jobs_JobId", table: "InventoryTransactions"); migrationBuilder.DropIndex( name: "IX_InventoryTransactions_JobId", table: "InventoryTransactions"); migrationBuilder.DropColumn( name: "JobId", table: "InventoryTransactions"); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 1, column: "CreatedAt", value: new DateTime(2026, 4, 15, 1, 2, 0, 308, DateTimeKind.Utc).AddTicks(3161)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 2, column: "CreatedAt", value: new DateTime(2026, 4, 15, 1, 2, 0, 308, DateTimeKind.Utc).AddTicks(3167)); migrationBuilder.UpdateData( table: "PricingTiers", keyColumn: "Id", keyValue: 3, column: "CreatedAt", value: new DateTime(2026, 4, 15, 1, 2, 0, 308, DateTimeKind.Utc).AddTicks(3169)); } } }