id(); $table->foreignId('user_id')->nullable()->constrained()->nullOnDelete(); $table->foreignId('session_id')->nullable()->constrained('questionnaire_sessions')->nullOnDelete(); $table->foreignId('category_id')->nullable()->constrained()->nullOnDelete(); $table->string('action', 100); $table->json('metadata')->nullable(); $table->timestamp('created_at')->nullable(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('logs'); } };