id(); $table->foreignId('employee_id')->constrained()->cascadeOnDelete(); $table->date('attendance_date'); $table->dateTime('check_in_at'); $table->dateTime('check_out_at')->nullable(); $table->decimal('check_in_latitude', 10, 7)->nullable(); $table->decimal('check_in_longitude', 10, 7)->nullable(); $table->decimal('check_out_latitude', 10, 7)->nullable(); $table->decimal('check_out_longitude', 10, 7)->nullable(); $table->unsignedInteger('work_duration_minutes')->nullable(); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate(); }); } public function down(): void { Schema::dropIfExists('attendances'); } };