id(); $table->string('table_name')->nullable(); // Hangi tablo $table->string('column_name')->nullable(); // Hangi sütun $table->unsignedBigInteger('row_id')->nullable(); // Hangi satır ID'si $table->string('user_name')->nullable(); // Kullanıcı adı $table->string('action'); // Upload, Download, Archive, Delete $table->string('file_name'); // Dosya adı $table->string('file_size')->nullable(); // Dosya boyutu $table->string('moved_from')->nullable(); // Kaynak klasör $table->string('moved_to')->nullable(); // Hedef klasör $table->timestamp('action_date'); // İşlem tarihi $table->text('file_path'); // Dosya yolu $table->text('notes')->nullable(); // Ek notlar $table->timestamps(); $table->index(['table_name', 'column_name', 'row_id']); $table->index(['file_name', 'table_name']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('document_history'); } }