id(); $table->unsignedSmallInteger('category_id')->nullable()->index(); $table->string('question'); $table->text('answer'); $table->unsignedInteger('order')->default(0)->index(); $table->boolean('is_active')->default(true)->index(); // Auditoria $table->timestamps(); // Relaciones $table->foreign('category_id')->references('id')->on('faq_categories')->nullOnDelete(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('faqs'); } };