id(); $table->unsignedBigInteger('id_user'); // Kolom id_user $table->string('name'); $table->integer('age'); $table->string('phone'); $table->string('alamat'); $table->timestamps(); // Foreign key constraint $table->foreign('id_user')->references('id')->on('users')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('pasiens'); } };