id(); $table->string('name'); $table->text('description')->nullable(); $table->foreignId('department_id')->constrained('departments')->onDelete('cascade'); $table->enum('status', ['active', 'inactive'])->default('active'); $table->foreignId('created_by')->constrained('users')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('designations'); } };