id(); $table->unsignedBigInteger('resource_id')->nullable(); $table->foreign('resource_id')->nullable()->references('id')->on('resources')->onUpdate('cascade')->onDelete('cascade'); $table->unsignedBigInteger('contract_type_id')->nullable(); $table->foreign('contract_type_id')->nullable()->references('id')->on('contract_types')->onUpdate('cascade')->onDelete('cascade'); $table->date('contract_date')->nullable(); $table->string('contract_number')->nullable(); $table->string('position')->nullable(); $table->string('role')->nullable(); $table->date('start_date')->nullable(); $table->date('end_date')->nullable(); $table->text('notes')->nullable(); $table->boolean('enabled')->default(1); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('resource_contracts'); } };