id(); $table->unsignedBigInteger('resource_id')->nullable(); $table->foreign('resource_id')->nullable()->references('id')->on('resources')->onUpdate('cascade')->onDelete('cascade'); $table->float('hours')->nullable(); $table->unsignedBigInteger('company_activity_id')->nullable(); $table->foreign('company_activity_id')->nullable()->references('id')->on('company_activities')->onUpdate('cascade')->onDelete('cascade'); $table->unsignedBigInteger('company_rate_id')->nullable(); $table->foreign('company_rate_id')->nullable()->references('id')->on('company_rates')->onUpdate('cascade')->onDelete('cascade'); $table->decimal('cost', total: 8, places: 2); $table->decimal('revenue', total: 8, places: 2); $table->decimal('margin', total: 8, places: 2); // $table->boolean('enabled')->default(1); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('project_budgets'); } };