using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace vendorApproverBackend.Migrations { /// public partial class UpdateRequestInspector : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "PqRequestInspector", columns: table => new { InspectedPrequalificationRequestsId = table.Column(type: "bigint", nullable: false), InspectorsId = table.Column(type: "bigint", nullable: false) }, constraints: table => { table.PrimaryKey("PK_PqRequestInspector", x => new { x.InspectedPrequalificationRequestsId, x.InspectorsId }); table.ForeignKey( name: "FK_PqRequestInspector_PrequalificationRequests_InspectedPrequa~", column: x => x.InspectedPrequalificationRequestsId, principalTable: "PrequalificationRequests", principalColumn: "id", onDelete: ReferentialAction.Cascade); table.ForeignKey( name: "FK_PqRequestInspector_users_table_InspectorsId", column: x => x.InspectorsId, principalTable: "users_table", principalColumn: "user_id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateIndex( name: "IX_PqRequestInspector_InspectorsId", table: "PqRequestInspector", column: "InspectorsId"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "PqRequestInspector"); } } }