increments('id'); $table->unsignedInteger('emp_id'); $table->time('duration'); $table->date('overtime_date'); $table->timestamps(); // Tambahkan index untuk emp_id $table->index('emp_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('overtimes'); } }