<?php
use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;
return new class extends Migration {public function up():void{Schema::create('project_risks_issues',function(Blueprint $t){$t->id();$t->foreignId('business_id');$t->foreignId('project_id');$t->string('type');$t->string('title');$t->text('description')->nullable();$t->foreignId('owner_id');$t->string('severity');$t->string('probability');$t->text('mitigation')->nullable();$t->date('due_date')->nullable();$t->string('status')->default('open');$t->timestamps();});}public function down():void{Schema::dropIfExists('project_risks_issues');}};
