id(); $table->enum('type', \App\Enums\TaxonomyType::cases()); $table->string('name'); $table->string('slug')->unique(); $table->foreignId('created_by')->nullable()->constrained('users'); $table->foreignId('updated_by')->nullable()->constrained('users'); $table->foreignId('deleted_by')->nullable()->constrained('users'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('taxonomies'); } };